]> granicus.if.org Git - llvm/commit
[DAGCombiner] Leverage add's commutativity
authorAmaury Sechet <deadalnix@gmail.com>
Sun, 5 Feb 2017 14:22:20 +0000 (14:22 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Sun, 5 Feb 2017 14:22:20 +0000 (14:22 +0000)
commit095ffad7c607cab1c6e2230c5fb453ab8112311a
tree3833cdbc10701e24717445fc4ac7a64d3a079152
parente0fd89875da66f053cf641586dd9efdcd0b79904
[DAGCombiner] Leverage add's commutativity

Summary: This avoid the need to duplicate all pattern and actually end up exposing some opportunity to optimize existing pattern that did not exists in both directions on an existing test case.

Reviewers: mkuper, spatel, bkramer, RKSimon, zvi

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D29541

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294125 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/adde-carry.ll