[PATCH] D52176: Remove LoopID metadata from the branch instruction that follows the peeled iterations.

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 17 20:01:24 PDT 2018


mkazantsev added a comment.

I don't think it's a good idea to unconditionally drop all metadata. What we had something useful there? For example, branch probability. If you need to get rid of `!llvm.loop` for some reason, you can try to make a more surgical update.



================
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:
----------------
I guess what you need here is something like `CHECK-NOT: loop1...`?


Repository:
  rL LLVM

https://reviews.llvm.org/D52176





More information about the llvm-commits mailing list