[PATCH] D19087: [x86] prefer comparisons against zero for and+cmp sequences

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Fri May 6 08:53:29 PDT 2016


spatel updated this revision to Diff 56421.
spatel added a comment.

Patch updated:

1. Added tests for predicates other than EQ/NE to show that we don't transform those.
2. Changed assert of valueHasExactlyOneBitSet() to a real check (if my earlier reasoning holds, I can change this back).


http://reviews.llvm.org/D19087

Files:
  include/llvm/Target/TargetLowering.h
  lib/CodeGen/SelectionDAG/TargetLowering.cpp
  lib/Target/X86/X86ISelLowering.cpp
  lib/Target/X86/X86ISelLowering.h
  test/CodeGen/X86/bmi.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19087.56421.patch
Type: text/x-patch
Size: 8157 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160506/b6f4dea4/attachment.bin>


More information about the llvm-commits mailing list