]> granicus.if.org Git - llvm/commit
[DAGCombine] Limit 'hoist add/sub binop w/ constant op' to non-opaque consts
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 30 May 2019 21:10:37 +0000 (21:10 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 30 May 2019 21:10:37 +0000 (21:10 +0000)
commitdeaea97947fa58b3977430c4e5ddd65be759d261
treefa579dd1631c05d211745f6dae7592e692041929
parentfaba0ea7782be0eb06f351650adc1ff0d2220358
[DAGCombine] Limit 'hoist add/sub binop w/ constant op' to non-opaque consts

I don't have a test case for these, but there is a test case for D62266
where, even after all the constant-folding patches, we still end up
with endless combine loop. Which makes sense, since we don't constant
fold for opaque constants.

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