[PATCH] D89139: [DAG][RISCV] Improve funnel shift promotion to use 'double shift' patterns
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 9 10:26:25 PDT 2020
craig.topper added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:1155
+ Hi = DAG.getNode(ISD::SHL, DL, VT, Hi, HiShift);
+ Lo = DAG.getNode(ISD::AND, DL, VT, Lo, DAG.getConstant(Mask, DL, VT));
+ SDValue Res = DAG.getNode(ISD::OR, DL, VT, Hi, Lo);
----------------
Can we use DAG.getZeroExtendInReg here with the old VT?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89139/new/
https://reviews.llvm.org/D89139
More information about the llvm-commits
mailing list