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 cd66a76 commit d4c02b4Copy full SHA for d4c02b4
llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
@@ -1316,7 +1316,7 @@ bool PPCLoopInstrFormPrep::runOnLoop(Loop *L) {
1316
// useless and possible to break some original well-form addressing mode
1317
// to make this pre-inc prep for it.
1318
if (PointerElementType->isIntegerTy(64)) {
1319
- const SCEV *LSCEV = SE->getSCEVAtScope(const_cast<Value *>(PtrValue), L);
+ const SCEV *LSCEV = SE->getSCEVAtScope(PtrValue, L);
1320
const SCEVAddRecExpr *LARSCEV = dyn_cast<SCEVAddRecExpr>(LSCEV);
1321
if (!LARSCEV || LARSCEV->getLoop() != L)
1322
return false;
0 commit comments