[PATCH] Rip min/max pattern matching out of InstCombine and into ValueTracking.

Gerolf Hoflehner ghoflehner at apple.com
Mon Apr 27 11:41:12 PDT 2015


REPOSITORY
  rL LLVM

================
Comment at: lib/Analysis/ValueTracking.cpp:3078
@@ +3077,3 @@
+
+      // ABS(X) ==> (X >s 0) ? X : -X and (X >s -1) ? X : -X
+      // NABS(X) ==> (X >s 0) ? -X : X and (X >s -1) ? -X : X
----------------
what about >= 0?

http://reviews.llvm.org/D9294

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list