[llvm] [GISel][CombinerHelper] Push freeze through non-poison-producing operands (PR #90618)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 09:44:59 PDT 2024


================
@@ -1737,6 +1737,8 @@ static bool canCreateUndefOrPoison(Register Reg, const MachineRegisterInfo &MRI,
   case TargetOpcode::G_FREEZE:
     return false;
   default:
+    if (isa<GCastOp>(RegDef) || isa<GBinOp>(RegDef))
----------------
tschuett wrote:

casts and binops can create poison

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


More information about the llvm-commits mailing list