mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
[Unroll] When completely unrolling the loop, replace conditinal branches with unconditional.
Nothing is expected to change, except we do less redundant work in clean-up. Reviewers: hfinkel Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D12951 llvm-svn: 248444
This commit is contained in:
parent
fb0e259fc6
commit
307104b262
@ -434,8 +434,9 @@ bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount,
|
||||
|
||||
// For a complete unroll, make the last iteration end with a branch
|
||||
// to the exit block.
|
||||
if (CompletelyUnroll && j == 0) {
|
||||
Dest = LoopExit;
|
||||
if (CompletelyUnroll) {
|
||||
if (j == 0)
|
||||
Dest = LoopExit;
|
||||
NeedConditional = false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user