[PATCH] D151719: [RISCV] Add special case for (select_cc 0, x, setlt, 0.0, 1.0) to lowerSELECT
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 30 14:18:57 PDT 2023
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:5565
+ // (select_cc 0, x, setge, 1.0, 0.0)
+ // -> (sint_to_fp (zext (setcc x, 1, setlt)))
----------------
Why does the condition code matter? Isn't this equally valid for any condition code?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151719/new/
https://reviews.llvm.org/D151719
More information about the llvm-commits
mailing list