[PATCH] D29680: [SelectionDAG] Fix bugs in inverted condition splitting code.
Geoff Berry via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 7 13:17:49 PST 2017
gberry created this revision.
Fix two bugs in SelectionDAGBuilder::FindMergedConditions reported by
Mikael Holmen. Handle non-canonicalized xor not operation
correctly (was assuming operand 0 was always the non-constant operand)
and check that the negated condition is also in the same block as the
original and/or instruction (as is done for and/or operands already)
before proceeding with optimization.
https://reviews.llvm.org/D29680
Files:
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/AArch64/br-cond-not-merge.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29680.87509.patch
Type: text/x-patch
Size: 3658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170207/06c0176e/attachment.bin>
More information about the llvm-commits
mailing list