[PATCH] Enable (sext x) == C --> x == (trunc C) combine
Matt Arsenault
Matthew.Arsenault at amd.com
Mon Dec 1 11:59:55 PST 2014
Extend the existing code which handles this for zext. This makes this more useful for targets with ZeroOrNegativeOne BooleanContent and obsoletes a custom combine SI uses for i1 setcc (sext(i1), 0, setne) since the constant will now be shrunk to i1.
http://reviews.llvm.org/D6466
Files:
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Target/R600/SIISelLowering.cpp
test/CodeGen/R600/setcc-opt.ll
test/CodeGen/R600/trunc-cmp-constant.ll
test/CodeGen/X86/shrink-compare.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6466.16779.patch
Type: text/x-patch
Size: 21975 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141201/f06d5a96/attachment.bin>
More information about the llvm-commits
mailing list