[PATCH] D12377: [NVPTX] Let NVPTX backend detect integer min and max patterns.
Bjarke Hammersholt Roune via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 26 14:20:04 PDT 2015
broune marked an inline comment as done.
================
Comment at: lib/Target/NVPTX/NVPTXISelLowering.cpp:4084
@@ +4083,3 @@
+ SDValue Larger; // The larger of LHS and RHS when condition is true.
+ switch (CC) {
+ case ISD::SETULT:
----------------
I found isSignedIntSetCC which makes the logic simpler. I kept the switch, as I need to ensure that only these codes are used, not e.g. eq.
http://reviews.llvm.org/D12377
More information about the llvm-commits
mailing list