[llvm] [SelectionDAG] Propagate Disjoint flag. (PR #88370)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 13 21:08:28 PDT 2024
================
@@ -9530,6 +9530,7 @@ static SDValue combineShiftOfShiftedLogic(SDNode *Shift, SelectionDAG &DAG) {
SDValue ShiftSumC = DAG.getConstant(*C0Val + C1Val, DL, ShiftAmtVT);
SDValue NewShift1 = DAG.getNode(ShiftOpcode, DL, VT, X, ShiftSumC);
SDValue NewShift2 = DAG.getNode(ShiftOpcode, DL, VT, Y, C1);
+ SelectionDAG::FlagInserter FlagsInserter(DAG, LogicOp->getFlags());
----------------
topperc wrote:
Why do we need to use FlagInserter? Can't we pass the flags to the last argument of getNode?
https://github.com/llvm/llvm-project/pull/88370
More information about the llvm-commits
mailing list