[PATCH] D64126: # Enter a commit message. # # Changes: # # lib/Analysis/ScalarEvolution.cpp [Scalar Evolution][Test] Disable distribution of truncation.
Evgeniy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 3 02:52:38 PDT 2019
ebrevnov created this revision.
Herald added subscribers: llvm-commits, sanjoy.
Herald added a project: LLVM.
Repository:
rL LLVM
https://reviews.llvm.org/D64126
Files:
lib/Analysis/ScalarEvolution.cpp
Index: lib/Analysis/ScalarEvolution.cpp
===================================================================
--- lib/Analysis/ScalarEvolution.cpp
+++ lib/Analysis/ScalarEvolution.cpp
@@ -1318,12 +1318,12 @@
}
// If the input value is a chrec scev, truncate the chrec's operands.
- if (const SCEVAddRecExpr *AddRec = dyn_cast<SCEVAddRecExpr>(Op)) {
- SmallVector<const SCEV *, 4> Operands;
- for (const SCEV *Op : AddRec->operands())
- Operands.push_back(getTruncateExpr(Op, Ty, Depth + 1));
- return getAddRecExpr(Operands, AddRec->getLoop(), SCEV::FlagAnyWrap);
- }
+// if (const SCEVAddRecExpr *AddRec = dyn_cast<SCEVAddRecExpr>(Op)) {
+// SmallVector<const SCEV *, 4> Operands;
+// for (const SCEV *Op : AddRec->operands())
+// Operands.push_back(getTruncateExpr(Op, Ty, Depth + 1));
+// return getAddRecExpr(Operands, AddRec->getLoop(), SCEV::FlagAnyWrap);
+// }
// The cast wasn't folded; create an explicit cast node. We can reuse
// the existing insert position since if we get here, we won't have
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64126.207739.patch
Type: text/x-patch
Size: 1052 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190703/031dd8ec/attachment.bin>
More information about the llvm-commits
mailing list