Skip to content

Commit d4c02b4

Browse files
kazutakahirataDebadri Basak
authored andcommitted
[PowerPC] Remove a redundant cast (NFC) (llvm#165834)
PtrValue is already of type Value *.
1 parent cd66a76 commit d4c02b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,7 @@ bool PPCLoopInstrFormPrep::runOnLoop(Loop *L) {
13161316
// useless and possible to break some original well-form addressing mode
13171317
// to make this pre-inc prep for it.
13181318
if (PointerElementType->isIntegerTy(64)) {
1319-
const SCEV *LSCEV = SE->getSCEVAtScope(const_cast<Value *>(PtrValue), L);
1319+
const SCEV *LSCEV = SE->getSCEVAtScope(PtrValue, L);
13201320
const SCEVAddRecExpr *LARSCEV = dyn_cast<SCEVAddRecExpr>(LSCEV);
13211321
if (!LARSCEV || LARSCEV->getLoop() != L)
13221322
return false;

0 commit comments

Comments
 (0)