[llvm] Eliminating li of 0 into arg registers of unused arguments (PR #122741)

Hubert Tong via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 3 16:27:31 PST 2025


================
@@ -977,6 +977,18 @@ void SelectionDAGLegalize::LegalizeOp(SDNode *Node) {
   TargetLowering::LegalizeAction Action = TargetLowering::Legal;
   bool SimpleFinishLegalizing = true;
   switch (Node->getOpcode()) {
+  // FixMe: If the node represents a poison value, replace it with an undef
+  // value.
----------------
hubert-reinterpretcast wrote:

Can you explain what is to be fixed here? The text seems to explain what the code is doing (not what it should do differently).

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


More information about the llvm-commits mailing list