[llvm] [llvm][gvn-sink] Don't try to sink inline asm (PR #138414)
Paul Kirth via llvm-commits
llvm-commits at lists.llvm.org
Mon May 5 12:03:53 PDT 2025
================
@@ -4220,8 +4220,9 @@ bool llvm::canReplaceOperandWithVariable(const Instruction *I, unsigned OpIdx) {
return false;
// Early exit.
- if (!isa<Constant>(I->getOperand(OpIdx)))
+ if (!isa<Constant, InlineAsm>(I->getOperand(OpIdx))) {
return true;
+ }
----------------
ilovepi wrote:
I'll fix the bracing here after I see the CI turn green on Windows. I already have the fix locally.
https://github.com/llvm/llvm-project/pull/138414
More information about the llvm-commits
mailing list