This change removes LoopID metadata from the branch instruction created for the peeled iterations. It just improves LLVM IR readability after the loop peeling, e.g. the branch instructions belonging to the peel code are not marked with metadata making it clear that they are not loop latch branches anymore.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This comment has been deleted.
test/Transforms/LoopUnroll/peel-loop-conditions.ll | ||
---|---|---|
43–45 | I guess what you need here is something like CHECK-NOT: loop1...? |
Comment Actions
LGTM, but please add CHECK-NOT into test to make sure that the metadata is actually dropped.
test/Transforms/LoopUnroll/peel-loop-conditions.ll | ||
---|---|---|
43–45 | 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. |
I guess what you need here is something like CHECK-NOT: loop1...?