[PATCH] Avoid FP conversions when calling bitcasted / alias functions

Matt Arsenault arsenm2 at gmail.com
Tue Jul 30 12:32:33 PDT 2013


On Jul 30, 2013, at 12:14 , Eli Friedman <eli.friedman at gmail.com> wrote:

> 
> ================
> Comment at: lib/Transforms/InstCombine/InstCombineCalls.cpp:1176
> @@ -1175,1 +1175,3 @@
> +          Instruction::CastOps opcode
> +            = CastInst::getCastOpcode(*AI, false, PTy, false);
>           Args.push_back(Builder->CreateCast(opcode, *AI, PTy));
> ----------------
> Did you mean to change this to build a bitcast?

I saw that one, but that was for calling as a varargs function, and those have weird promotion rules, so I figured I wouldn't touch it.



More information about the llvm-commits mailing list