[PATCH] D129757: [RISCV] Optimize SELECT_CC when the true value of select is Constant
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 17 17:42:45 PDT 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:3844
+static ISD::CondCode getOppositeCondition(ISD::CondCode CC) {
+ switch (CC) {
----------------
There's already ISD::getSetCCInverse in ISDOpcodes.h
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129757/new/
https://reviews.llvm.org/D129757
More information about the llvm-commits
mailing list