[PATCH] D109462: [ARM] Remove unnecessary use of replaceSymbolicStrideSCEV (NFC).
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 10 01:48:09 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5d1a6d0d1a48: [ARM] Remove unnecessary use of replaceSymbolicStrideSCEV (NFC). (authored by fhahn).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109462/new/
https://reviews.llvm.org/D109462
Files:
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
Index: llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
===================================================================
--- llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
+++ llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
@@ -2080,8 +2080,7 @@
// least if they are loop invariant.
// TODO: Loop variant strides should in theory work, too, but
// this requires further testing.
- const SCEV *PtrScev =
- replaceSymbolicStrideSCEV(PSE, llvm::ValueToValueMap(), Ptr);
+ const SCEV *PtrScev = PSE.getSE()->getSCEV(Ptr);
if (auto AR = dyn_cast<SCEVAddRecExpr>(PtrScev)) {
const SCEV *Step = AR->getStepRecurrence(*PSE.getSE());
if (PSE.getSE()->isLoopInvariant(Step, L))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109462.371825.patch
Type: text/x-patch
Size: 769 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210910/dc34725f/attachment.bin>
More information about the llvm-commits
mailing list