[llvm-commits] [llvm] r55374 - in /llvm/trunk: lib/Transforms/Scalar/LoopStrengthReduce.cpp test/Transforms/LoopStrengthReduce/2008-08-14-ShadowIV.ll
clattner at apple.com
Wed Aug 27 13:42:53 PDT 2008
On Aug 27, 2008, at 12:20 PM, Devang Patel wrote:
> On Aug 27, 2008, at 11:20 AM, Evan Cheng wrote:
>> TargetLowering::getTypeAction probably would do.
> I found TargetLowering::isTypeLegal() however, TargetLowering is not
> set when loop-reduce is used through 'opt'. I'll try to find some way.
This is "normal". LSR is heavily parameterized on the target CPU
info, and this is only available when LSR is run from LLC. Making LSR
runnable through opt is mostly useful to allow writing regtests for
it, it isn't a practical way to run it if you care about code quality.
More information about the llvm-commits