constant_value
result = constant_value(val, dtype);
rhs = constant_value(insn->src2->value, LLVMTypeOf(lhs));