[PATCH] D42788: [SDAG] Legalize all CondCodes by inverting them and/or swapping operands

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 5 12:00:26 PST 2018


efriedma added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1637
       return true;
     }
     ISD::CondCode CC1 = ISD::SETCC_INVALID, CC2 = ISD::SETCC_INVALID;
----------------
Could you put the code to invert the condition code here, instead of inside the switch, so it doesn't get mixed up with the floating-point-specific stuff?


Repository:
  rL LLVM

https://reviews.llvm.org/D42788





More information about the llvm-commits mailing list