[PATCH] D52176: Remove LoopID metadata from the branch instruction that follows the peeled iterations.
Vyacheslav Zakharin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 18 09:49:10 PDT 2018
vzakhari added inline comments.
================
Comment at: test/Transforms/LoopUnroll/peel-loop-conditions.ll:41
; CHECK-NEXT: [[CMP_PEEL8:%.*]] = icmp slt i32 [[INC_PEEL7]], [[K]]
; CHECK-NEXT: br i1 [[CMP_PEEL8]], label [[FOR_BODY_PEEL_NEXT1:%.*]], label [[FOR_END]]
; CHECK: for.body.peel.next1:
----------------
mkazantsev wrote:
> I guess what you need here is something like `CHECK-NOT: loop1...`?
If there is "!llvm.loop !{{.*}}" in this line, then FOR_END will contain it, so it will not pass CHECK-NEXT at line 62 below. At the same time, I agree that more robust checking may be done here, so I will update the tests shortly.
Repository:
rL LLVM
https://reviews.llvm.org/D52176
More information about the llvm-commits
mailing list