summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-11-16 20:23:22 +0000
committerCraig Topper <craig.topper@intel.com>2017-11-16 20:23:22 +0000
commite85ff4f732627c664778a3d07adbb8106769d92d (patch)
tree1750984fddefe22fbd2349e1eb30aa96ce580de1 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent04be793cecd837599243bc9439357529d8bea2ae (diff)
downloadbcm5719-llvm-e85ff4f732627c664778a3d07adbb8106769d92d.tar.gz
bcm5719-llvm-e85ff4f732627c664778a3d07adbb8106769d92d.zip
[X86] Pre-truncate gather/scatter indices that have element sizes larger than 64-bits before Legalize.
The wider element type will normally cause legalize to try to split and scalarize the gather/scatter, but we can't handle that. Instead, truncate the index early so the gather/scatter node is insulated from the legalization. This really shouldn't happen in practice since InstCombine will normalize index types to the same size as pointers. llvm-svn: 318452
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud