OSDN Git Service

[DAGCombine] ((c1-A)-c2) -> ((c1-c2)-A) constant-fold
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 30 May 2019 19:27:51 +0000 (19:27 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 30 May 2019 19:27:51 +0000 (19:27 +0000)
commitc88a7aafeda250690d519000e0e346e767712a61
treedebef06f67a542056aa65f51b0d726741bb2ee4c
parent2b88706ce13787cd6362fd87ba28d961a3fda1f4
[DAGCombine] ((c1-A)-c2) -> ((c1-c2)-A)  constant-fold

Summary: https://rise4fun.com/Alive/B0A

Reviewers: t.p.northover, RKSimon, spatel, craig.topper

Reviewed By: RKSimon

Subscribers: javed.absar, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362135 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/AArch64/addsub-constant-folding.ll
test/CodeGen/X86/addsub-constant-folding.ll