[llvm] [llvm][gvn-sink] Don't try to sink inline asm (PR #138414)
via llvm-commits
llvm-commits at lists.llvm.org
Sun May 4 10:21:11 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Transforms/Scalar/GVNSink.cpp llvm/lib/Transforms/Utils/Local.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 6af7e5394..fb4f3be0d 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -4226,7 +4226,7 @@ bool llvm::canReplaceOperandWithVariable(const Instruction *I, unsigned OpIdx) {
// Early exit.
if (!isa<Constant>(I->getOperand(OpIdx))) {
- if(const auto *CB = dyn_cast<CallBase>(I))
+ if (const auto *CB = dyn_cast<CallBase>(I))
return !CB->isInlineAsm();
return true;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/138414
More information about the llvm-commits
mailing list