[PATCH] D145897: [RISCV] Merge getLoadFP*Imm into a single function.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 13 15:34:09 PDT 2023
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:1546
+ bool IsSupportedVT = false;
+ if (VT == MVT::f16) {
+ IsSupportedVT = Subtarget.hasStdExtZfh() || Subtarget.hasStdExtZvfh();
----------------
I used if/else because switch on EVT requires `VT.isSimple()` first.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145897/new/
https://reviews.llvm.org/D145897
More information about the llvm-commits
mailing list