[llvm] [NFC][indvars] Remove unused code in WidenIV::widenLoopCompare (PR #73506)
Wenju He via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 29 15:49:50 PST 2023
wenju-he wrote:
CI clang-format error isn't related to this pr:
```
Running: git-clang-format --diff f[21](https://github.com/llvm/llvm-project/actions/runs/7004455642/job/19052227219?pr=73506#step:10:22)a70f9fe21539f70212ba[23](https://github.com/llvm/llvm-project/actions/runs/7004455642/job/19052227219?pr=73506#step:10:24)46c3db54f4d9980 c9808bf052d7ae13c3a8fb7678bdd[25](https://github.com/llvm/llvm-project/actions/runs/7004455642/job/19052227219?pr=73506#step:10:26)73a00deb9 -- llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
error: clang-format exited with code 1
diff --git a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
index a1d09fd73c..47ecc89055 100644
--- a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
@@ -1[37](https://github.com/llvm/llvm-project/actions/runs/7004455642/job/19052227219?pr=73506#step:10:38)9,10 +1379,10 @@ WidenIV::getExtendedOperandRecurrence(WidenIV::NarrowIVDefUse DU) {
ExtendKind ExtKind = getExtendKind(DU.NarrowDef);
if (ExtKind == ExtendKind::Sign && OBO->hasNoSignedWrap())
ExtendOperExpr = SE->getSignExtendExpr(
- SE->getSCEV(DU.NarrowUse->getOperand(ExtendOperIdx)), WideType);
+ SE->getSCEV(DU.NarrowUse->getOperand(ExtendOperIdx)), WideType);
else if (ExtKind == ExtendKind::Zero && OBO->hasNoUnsignedWrap())
ExtendOperExpr = SE->getZeroExtendExpr(
- SE->getSCEV(DU.NarrowUse->getOperand(ExtendOperIdx)), WideType);
+ SE->getSCEV(DU.NarrowUse->getOperand(ExtendOperIdx)), WideType);
else
return {nullptr, ExtendKind::Unknown};
error: some formatters failed: clang-format
Error: Process completed with exit code 1.
```
https://github.com/llvm/llvm-project/pull/73506
More information about the llvm-commits
mailing list