[PATCH] D77152: [SelectionDAG] Better legalization for FSHL and FSHR
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 13 07:14:42 PDT 2020
arsenm added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp:148
+ if (Op0.getOpcode() == ISD::SHL && isa<ConstantSDNode>(Op0.getOperand(1)) &&
+ isa<ConstantSDNode>(Op1)) {
+ uint64_t ShlAmt =
----------------
dyn_cast rather than isa and cast?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77152/new/
https://reviews.llvm.org/D77152
More information about the llvm-commits
mailing list