[PATCH] D48508: [DAGCombiner] eliminate setcc bool math when input is low-bit of some value
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 23 10:39:21 PDT 2018
craig.topper accepted this revision.
craig.topper added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: test/CodeGen/X86/bool-math.ll:159
+; CHECK-NEXT: movb $41, %al
+; CHECK-NEXT: subb %dil, %al
; CHECK-NEXT: retq
----------------
I wonder if we can turn the subb here into xor to allow the constant to fold?
https://reviews.llvm.org/D48508
More information about the llvm-commits
mailing list