[llvm] [GlobalIsel] combine ext of trunc with flags (PR #87115)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 29 23:19:53 PDT 2024


================
@@ -7138,3 +7138,69 @@ bool CombinerHelper::matchAddOverflow(MachineInstr &MI, BuildFnTy &MatchInfo) {
 
   return false;
 }
+
+void CombinerHelper::applyBuildFnMO(const MachineOperand &MO,
+                                    BuildFnTy &MatchInfo) {
+  MachineInstr *Root = getDefIgnoringCopies(MO.getReg(), MRI);
+  Builder.setInstrAndDebugLoc(*Root);
----------------
arsenm wrote:

This should be unnecessary since 360f7f5674c4ddef006d233ef7259f8fe07ae81b

https://github.com/llvm/llvm-project/pull/87115


More information about the llvm-commits mailing list