[llvm] [SystemZ] Add inlining heuristic for IV update in callee. (PR #113135)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 02:06:49 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff ba5676cf91f91bbddfacae06c036cf79af0f2088 e0030496a2510604ae2f2262729bed433499f945 --extensions cpp -- llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
index 128135199a..99c97a337e 100644
--- a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
@@ -80,8 +80,7 @@ static void getNumGEPIndexUses(const Value *V, unsigned &NumGEPIdxUses) {
assert(isa<AllocaInst>(V) && LI->getType()->isIntegerTy() &&
"Expected a load only from the alloca, with integer type.");
getNumGEPIndexUses(LI, NumGEPIdxUses);
- }
- else if (const auto *SExtI = dyn_cast<SExtInst>(U))
+ } else if (const auto *SExtI = dyn_cast<SExtInst>(U))
getNumGEPIndexUses(SExtI, NumGEPIdxUses);
else if (const auto *ZExtI = dyn_cast<ZExtInst>(U))
getNumGEPIndexUses(ZExtI, NumGEPIdxUses);
``````````
</details>
https://github.com/llvm/llvm-project/pull/113135
More information about the llvm-commits
mailing list