OSDN Git Service

[DAGCombine] Fix (shl (ext (shl x, c1)), c2) -> (shl (ext x), (add c1, c2)) comment...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 19 Jun 2019 11:17:48 +0000 (11:17 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 19 Jun 2019 11:17:48 +0000 (11:17 +0000)
commit07e51b46a78954e93442ed360c97ae7e4f58287d
treecf9f62d89bb585b985342684c22933d28b3ebdcc
parentb1ba8a93bc935be2cfed3bfd385c56cba10461b6
[DAGCombine] Fix (shl (ext (shl x, c1)), c2) -> (shl (ext x), (add c1, c2)) comment. NFCI.

We pre-extend, not post.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363787 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/combine-shl.ll