[llvm] [SelectionDAG] Emit `AssertZext` for function argument range attributes (PR #196786)

Iris Shi via llvm-commits llvm-commits at lists.llvm.org
Mon May 11 19:48:36 PDT 2026


================
@@ -12198,6 +12201,8 @@ void SelectionDAGISel::LowerArguments(const Function &F) {
           OutVal = DAG.getNode(ISD::AssertNoFPClass, dl, OutVal.getValueType(),
                                OutVal, SDNoFPClass);
         }
+        if (NumValues == 1 && VT.isInteger() && !isa<LoadSDNode>(OutVal))
----------------
el-ev wrote:

I'm actually not as familiar with this area... Should we keep the guard or remove it?

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


More information about the llvm-commits mailing list