commit | c3fc1550b7ee02fc3b3ec0498134cecbe9374b9e | [log] [tgz] |
---|---|---|
author | Simon Pilgrim <llvm-dev@redking.me.uk> | Thu Sep 14 10:38:30 2017 +0000 |
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | Thu Sep 14 10:38:30 2017 +0000 |
tree | ccb99f08c616fecf1733f0fc67fe79f7ceaef0d5 | |
parent | 2e42fb210e0c9ef819b242617b20df42b2083213 [diff] |
[DAGCombine] (shl (or x, c1), c2) -> (or (shl x, c2), c1 << c2) We already have a combine for this pattern when the input to shl is add, so we just need to enable the transformation when the input is or. Original patch by @tstellar Differential Revision: https://reviews.llvm.org/D19325 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313251 91177308-0d34-0410-b5e6-96231b3b80d8