[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
Sat Jun 23 08:29:03 PDT 2018


spatel updated this revision to Diff 152592.
spatel marked an inline comment as done.
spatel added a comment.

Patch updated - no functional change intended from the previous rev (test diffs are identical):

1. Refactored to reduce code duplication and improve readability.
2. Replaced getValueSizeInBits() == 1 with getValueType() == MVT::i1.


https://reviews.llvm.org/D48508

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/PowerPC/bool-math.ll
  test/CodeGen/X86/bool-math.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48508.152592.patch
Type: text/x-patch
Size: 12336 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180623/f5bb9cd4/attachment.bin>


More information about the llvm-commits mailing list