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

Matt Arsenault arsenm2 at gmail.com
Tue Jul 30 13:32:56 PDT 2013


On Jul 30, 2013, at 13:25 , Eli Friedman <eli.friedman at gmail.com> wrote:
> 
> CastInst::getCastOpcode should just die.  We generally don't want the
> full generality of getCastOpcode; LLVM IR isn't C.

Sure, but the problem I'm trying to solve is dying in a case that is valid because there isn't enough information in the function. getCastOpcode doesn't know the pointer sizes, so it can only die if the address spaces don't match. It doesn't need to die if the sizes match, but it doesn't have a way of knowing that currently.



More information about the llvm-commits mailing list