Regardless how the loop body weight is distributed, we should preserve
total loop body weight. i.e. we should have same weight reaching the body of the loop
or its duplicates in peeled and unpeeled case.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Transforms/Utils/LoopUnrollPeel.cpp | ||
---|---|---|
338 ↗ | (On Diff #82787) | Might be better to name it CurHeaderWeight or just HeaderWeight |
351 ↗ | (On Diff #82787) | This comment is not accurate. Better "Subtract the exit weight from the current header weight -- the exit weight is exactly ..." |
393 ↗ | (On Diff #82787) | remaining loop body weight --> current header weight loop body entry count --> current loop exit weight |