[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 11:05:26 PDT 2025
================
@@ -4220,8 +4220,11 @@ bool llvm::canReplaceOperandWithVariable(const Instruction *I, unsigned OpIdx) {
return false;
// Early exit.
- if (!isa<Constant>(I->getOperand(OpIdx)))
+ if (!isa<Constant>(I->getOperand(OpIdx))) {
----------------
ilovepi wrote:
That's a nice way to do that, thanks. Seems to be working locally.
https://github.com/llvm/llvm-project/pull/138414
More information about the llvm-commits
mailing list