[llvm] [SelectionDAG] Treat CopyFromReg as freezing the value (PR #85932)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 20 07:15:51 PDT 2024


================
@@ -5012,6 +5012,10 @@ bool SelectionDAG::isGuaranteedNotToBeUndefOrPoison(SDValue Op,
   case ISD::TargetFrameIndex:
     return true;
 
+  case ISD::CopyFromReg:
+    // Treat CopyFromReg as freezing the value.
----------------
arsenm wrote:

Just add to the case above handling FrameIndex and co? Don't need the special comment?

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


More information about the llvm-commits mailing list