[PATCH] D17184: [LVI] Extend select handling to catch min/max/clamp idioms

Ahmed Bougacha via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 12 10:46:57 PST 2016


ab added a subscriber: ab.

================
Comment at: lib/IR/ConstantRange.cpp:718
@@ +717,3 @@
+ConstantRange::smin(const ConstantRange &Other) const {
+  // X smax Y is: range(smin(X_smin, Y_smin),
+  //                    smin(X_smax, Y_smax))
----------------
smax -> smin? Same below


http://reviews.llvm.org/D17184





More information about the llvm-commits mailing list