[llvm] r296432 - [LoopUnswitch] Common pushing LIC's user to worklist.
Xin Tong via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 27 19:32:41 PST 2017
Author: trentxintong
Date: Mon Feb 27 21:32:41 2017
New Revision: 296432
URL: http://llvm.org/viewvc/llvm-project?rev=296432&view=rev
Log:
[LoopUnswitch] Common pushing LIC's user to worklist.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp?rev=296432&r1=296431&r2=296432&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp Mon Feb 27 21:32:41 2017
@@ -1332,13 +1332,11 @@ void LoopUnswitch::RewriteLoopBodyWithCo
// 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.
More information about the llvm-commits
mailing list