[llvm] [SelectionDAG] Require last operand of (STRICT_)FP_ROUND to be a TargetConstant. (PR #117639)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 25 16:13:50 PST 2024


================
@@ -5277,7 +5277,7 @@ void SelectionDAGLegalize::PromoteNode(SDNode *Node) {
       Tmp1 = DAG.getNode(TruncOp, dl, Node->getValueType(0), Tmp1);
     else
       Tmp1 = DAG.getNode(TruncOp, dl, Node->getValueType(0), Tmp1,
-                         DAG.getIntPtrConstant(0, dl));
+                         DAG.getIntPtrConstant(0, dl, /*isTarget=*/true));
----------------
topperc wrote:

Could it be MVT::i1?

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


More information about the llvm-commits mailing list