We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b14359c commit 88f5317Copy full SHA for 88f5317
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -3785,7 +3785,7 @@ LSRInstance::CollectLoopInvariantFixupsAndFormulae() {
3785
// Ignore icmp instructions which are already being analyzed.
3786
if (const ICmpInst *ICI = dyn_cast<ICmpInst>(UserInst)) {
3787
unsigned OtherIdx = !U.getOperandNo();
3788
- Value *OtherOp = const_cast<Value *>(ICI->getOperand(OtherIdx));
+ Value *OtherOp = ICI->getOperand(OtherIdx);
3789
if (SE.hasComputableLoopEvolution(SE.getSCEV(OtherOp), L))
3790
continue;
3791
}
0 commit comments