================
@@ -1237,6 +1237,8 @@ SCEVExpander::expandAddRecExprLiterally(SCEVUseT<const
SCEVAddRecExpr *> S) {
// We have decided to reuse an induction variable of a dominating loop. Apply
// truncation and/or inversion of the step.
if (TruncTy) {
+ if ((TruncTy != Result->getType()) || InvertStep)
----------------
nikic wrote:
```suggestion
if (TruncTy != Result->getType() || InvertStep)
```
https://github.com/llvm/llvm-project/pull/192831
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits