[PATCH] D25485: [DAG] optimize negation of bool

Zvi Rackover via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 15 22:49:03 PDT 2016


zvi added inline comments.


================
Comment at: test/CodeGen/X86/negate-i1.ll:131
 ; X32-NEXT:    movl %eax, %edx
+; X32-NEXT:    sarl $31, %edx
 ; X32-NEXT:    retl
----------------
This SAR is redundant. Does DAGCombine know that SAR(all_ones/allzeros) is redundant?


https://reviews.llvm.org/D25485





More information about the llvm-commits mailing list