[PATCH] D12136: [X86] Emit more efficient >= comparisons against 0

Mitch Bodart via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 19 13:26:45 PDT 2015


mbodart added inline comments.

================
Comment at: lib/Target/X86/X86ISelLowering.cpp:24078
@@ +24077,3 @@
+// Try to turn tests against the signbit in the form of:
+//   XOR(TRUNCATE(SRL(X, size(X)-1)), 1)
+// into:
----------------
Guess my coffee wasn't strong enough either ;-)
Yes, the trunc/shift usage counts were what I meant.


http://reviews.llvm.org/D12136





More information about the llvm-commits mailing list