[DAGCombiner] fix load narrowing transform to exclude loads with extension
authorSanjay Patel <spatel@rotateright.com>
Mon, 29 May 2017 13:24:58 +0000 (13:24 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 29 May 2017 13:24:58 +0000 (13:24 +0000)
commit51152a3727938b325c65cce242e1e8afc73fc90e
tree2dacf821b7eb48389fb2835c313120d792899350
parentfe0c0935c81cd3136045ccaee57cadbbc0dd2595
[DAGCombiner] fix load narrowing transform to exclude loads with extension

The extending load possibility was missed in:
https://reviews.llvm.org/rL304072

We might want to handle this cases as a follow-up, but bailing out for now
to avoid miscompiling.

llvm-svn: 304153
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/vector-sext.ll