[PATCH] D37209: [LSR] Fix Shadow IV in case of integer overflow

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 29 00:17:44 PDT 2017


reames accepted this revision.
reames added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: test/Transforms/LoopStrengthReduce/X86/2008-08-14-ShadowIV.ll:141
+
+; Can eliminate if we set nsw and, this, think that we don't overflow SINT_MAX.
+
----------------
this -> thus


================
Comment at: test/Transforms/LoopStrengthReduce/X86/2008-08-14-ShadowIV.ll:188
+
+; Can eliminate if we set nuw and, this, think that we don't overflow UINT_MAX.
+
----------------
this -> thus


https://reviews.llvm.org/D37209





More information about the llvm-commits mailing list