[PATCH] D18867: [IndVarSimplify] Eliminate zext of a signed IV when the IV is known to be non-negative

Li Huang via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 20 08:34:01 PDT 2016


lihuang added a comment.

Using -loop-rotate works for these cases, as the "%add = add nsw i32 %i.0, 2" is brought to loop header and "nsw" is propagated. Thank you Sanjoy!


http://reviews.llvm.org/D18867





More information about the llvm-commits mailing list