[llvm-commits] [llvm] r93202 - /llvm/trunk/lib/Transforms/InstCombine/InstCombineCasts.cpp

Dan Gohman gohman at apple.com
Wed Jan 13 15:45:38 PST 2010


On Jan 12, 2010, at 11:08 AM, Chris Lattner wrote:

> 
> On Jan 12, 2010, at 11:04 AM, Dan Gohman wrote:
> 
>> 
>> On Jan 11, 2010, at 2:49 PM, Chris Lattner wrote:
>>> 
>>> reenable the piece that turns trunc(zext(x)) -> x even if zext has multiple uses,
>>> codegen has no apparent problem with the trunc version of this, because it turns
>>> into a simple subreg idiom
>> 
>> On targets where TargetLowering::isTruncateFree returns true,
>> at least.
> 
> Are you concerned about a specific target?  This xform in general only applies when the source and dest are both 'native' integer types.

No, just theoretical targets I guess, so it's probably close enough.

Dan





More information about the llvm-commits mailing list