[PATCH] D64286: [LFTR] Don't use post-inc IV unless already used
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 6 07:59:28 PDT 2019
nikic marked an inline comment as done.
nikic added inline comments.
================
Comment at: llvm/test/Transforms/IndVarSimplify/lftr.ll:390
+; CHECK-NEXT: [[LFTR_WIDEIV:%.*]] = trunc i64 [[INDVARS_IV]] to i32
+; CHECK-NEXT: [[EXITCOND:%.*]] = icmp ne i32 [[LFTR_WIDEIV]], [[TMP1]]
; CHECK-NEXT: br i1 [[EXITCOND]], label [[FOR_BODY]], label [[FOR_END_LOOPEXIT:%.*]]
----------------
This change can be avoided by strengthening the isLoopExitTestBasedOn() check to look for indirect uses (there's a truncate in between here).
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64286/new/
https://reviews.llvm.org/D64286
More information about the llvm-commits
mailing list