[llvm-commits] [llvm] r50382 - in /llvm/trunk: include/llvm/LinkAllPasses.h include/llvm/Transforms/Scalar.h lib/Transforms/Scalar/DeadLoopElimination.cpp
Owen Anderson
resistor at mac.com
Tue Apr 29 13:09:01 PDT 2008
On Apr 29, 2008, at 1:36 PM, Chris Lattner wrote:
>> +bool DeadLoopElimination::IsLoopInvariantInst(Instruction *I, Loop*
>> L) {
>
> Can Loop::isLoopInvariant be used for this?
Unfortunately, no. isLoopInvariant never considers an instruction
defined within the loop to be invariant. I tried using it initially,
and found that i eliminated very few loops. The code I'm using here
is the same logic that LICM uses as well.
--Owen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4260 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080429/0f7873e6/attachment.bin>
More information about the llvm-commits
mailing list