[PATCH] D48508: [DAGCombiner] eliminate setcc bool math when input is low-bit of some value
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 24 07:39:37 PDT 2018
spatel added inline comments.
================
Comment at: test/CodeGen/X86/bool-math.ll:159
+; CHECK-NEXT: movb $41, %al
+; CHECK-NEXT: subb %dil, %al
; CHECK-NEXT: retq
----------------
craig.topper wrote:
> I wonder if we can turn the subb here into xor to allow the constant to fold?
Yes, there's probably a demanded / common bits check missing.
https://reviews.llvm.org/D48508
More information about the llvm-commits
mailing list