[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 18:22:14 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:
Shoot of course I forgot to update before hitting merge.. addressed in #138620
https://github.com/llvm/llvm-project/pull/138414
More information about the llvm-commits
mailing list