[DAGCombine] Generalize the case (add (or x, c1), c2) -> (add x, (c1 + c2))
authorMichael Liao <michael.hliao@gmail.com>
Thu, 4 Jun 2020 06:01:49 +0000 (02:01 -0400)
committerMichael Liao <michael.hliao@gmail.com>
Fri, 12 Jun 2020 17:53:08 +0000 (13:53 -0400)
commite7b920e6fe7c961724cc5bce0c5ffd3d41885cf4
tree5006a4257c332b1e53efbcef10f6f5037daa3182
parentc32d261e27c8c63653799fa6e411c373bd81d519
[DAGCombine] Generalize the case (add (or x, c1), c2) -> (add x, (c1 + c2))

Reviewers: arsenm

Subscribers: sdardis, wdng, hiraditya, asb, rbar, johnrusso, simoncook, sabuasal, niosHD, jrtc27, MaskRay, zzheng, edward-jones, atanasyan, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, Jim, lenary, s.egerton, pzheng, sameer.abuasal, apazos, luismarques, ecnelises, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81708
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/ARM/va_arg.ll
llvm/test/CodeGen/Mips/cconv/arguments-varargs.ll
llvm/test/CodeGen/RISCV/vararg.ll