diff options
author | Xin Tong <trent.xin.tong@gmail.com> | 2017-02-28 03:32:41 +0000 |
---|---|---|
committer | Xin Tong <trent.xin.tong@gmail.com> | 2017-02-28 03:32:41 +0000 |
commit | 01feb29ad2590eb70ffc38d33b0f96feb771e663 (patch) | |
tree | 18a1e5730ee426625f9ef2b7d72bccb3f064f582 | |
parent | 6e96734dd19842ae1739e35f984e06b5f15d32af (diff) | |
download | bcm5719-llvm-01feb29ad2590eb70ffc38d33b0f96feb771e663.tar.gz bcm5719-llvm-01feb29ad2590eb70ffc38d33b0f96feb771e663.zip |
[LoopUnswitch] Common pushing LIC's user to worklist.
llvm-svn: 296432
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopUnswitch.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp index add63eb74e3..a670c6ed692 100644 --- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -1332,13 +1332,11 @@ void LoopUnswitch::RewriteLoopBodyWithConditionConstant(Loop *L, Value *LIC, // dead by replacing all its users and push it onto the worklist so that // it can be properly deleted and its operands simplified. UI->replaceAllUsesWith(Replacement); - Worklist.push_back(UI); - continue; } } - // Unable to simplify with non-valueness, push it into the worklist so that - // SimplifyCode can attempt to simplify it. + // This is a LIC user, push it into the worklist so that SimplifyCode can + // attempt to simplify it. Worklist.push_back(UI); // If we know that LIC is not Val, use this info to simplify code. |