[llvm] [GlobalIsel] Combine freeze (PR #93239)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Tue May 28 04:46:54 PDT 2024
================
@@ -265,11 +265,13 @@ bool CombinerHelper::matchFreezeOfSingleMaybePoisonOperand(
}
}
+ Observer.changingInstr(*OrigDef);
cast<GenericMachineInstr>(OrigDef)->dropPoisonGeneratingFlags();
----------------
tschuett wrote:
In Instcombine, the change is *above* the returns.
https://github.com/llvm/llvm-project/blob/cb7995a1308c1bef396f9a2b2b14472cbdcca755/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp#L4428
We could move the change into both `MatchInfo` s.
https://github.com/llvm/llvm-project/pull/93239
More information about the llvm-commits
mailing list