[PATCH] D12745: [IndVars] Widen more comparisons for non-negative induction vars.
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 18:07:43 PDT 2015
sanjoy created this revision.
sanjoy added reviewers: mcrosier, atrick.
sanjoy added a subscriber: llvm-commits.
If an induction variable is provably non-negative, its sign extension is
equal to its zero extension. This means narrow uses like
icmp slt iNarrow %indvar, %rhs
can be widened into
icmp slt iWide zext(%indvar), sext(%rhs)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4037 bytes
Desc: not available
More information about the llvm-commits