Add a dag combine pattern for folding C2-(A+C1) -> (C2-C1)-A
authorEric Christopher <echristo@apple.com>
Thu, 14 Jul 2011 01:12:15 +0000 (01:12 +0000)
committerEric Christopher <echristo@apple.com>
Thu, 14 Jul 2011 01:12:15 +0000 (01:12 +0000)
commit7332e6ee25378e19c0f621c80c32b283b07f428a
tree6f46ab0ca76417972102981de3e3551bd7a0bf56
parent4fcfcf498436533ea9bc59404d10751bc76cfd2c
Add a dag combine pattern for folding C2-(A+C1) -> (C2-C1)-A

Fixes rdar://9761830

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135123 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp