[PATCH] D97859: [LegalizeDAG] Implement promotion rules for SELECT_CC
LemonBoy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 3 10:03:41 PST 2021
LemonBoy added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:4728
+ // Cast the operands.
+ Tmp1 = DAG.getNode(ExtOp, dl, NVT, Node->getOperand(0));
+ Tmp2 = DAG.getNode(ExtOp, dl, NVT, Node->getOperand(1));
----------------
craig.topper wrote:
> I believe ISD::SELECT_CC can have integer operands for the compare and FP operands for the result and true/false value.
I actually tried to do so but hit an assertion when the previous node is RAUW'd.
The assert message is `"Cannot replace uses of with self"`, some brief testing showed it complains after the `SELECT_CC` is promoted for the second time.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97859/new/
https://reviews.llvm.org/D97859
More information about the llvm-commits
mailing list