[PATCH] D54698: [SelectionDAG] Initial support for FSHL/FSHR funnel shift opcodes (PR39467)
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 31 10:03:26 PDT 2020
foad added inline comments.
================
Comment at: lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:5744
+ auto FunnelOpcode = IsFSHL ? ISD::FSHL : ISD::FSHR;
+ if (TLI.isOperationLegalOrCustom(FunnelOpcode, VT)) {
+ setValue(&I, DAG.getNode(FunnelOpcode, sdl, VT, X, Y, Z));
----------------
RKSimon wrote:
> nikic wrote:
> > Would it be possible to unconditionally create FSHL/FSHR here, drop the expansion code below and rely on the expansion in DAG legalization only?
> At least not until all the legalization + promotion code is in place - I'd prefer to do that in future patches.
I've tried to do this in D77152.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54698/new/
https://reviews.llvm.org/D54698
More information about the llvm-commits
mailing list