DAGCombiner: Turn extract of bitcasted integer into truncate
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 1 Mar 2016 18:01:37 +0000 (18:01 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 1 Mar 2016 18:01:37 +0000 (18:01 +0000)
commit03dac8d8e48c2acd3517c028ebbbdeea0628a706
treeae32e6ef19d67b295465178f615f02ffe67bae73
parente55c1658ea4b2945942ab3d3646258101c75e2e2
DAGCombiner: Turn extract of bitcasted integer into truncate

This reduces the number of bitcast nodes and generally cleans up the
DAG when bitcasting between integers and vectors everywhere.

llvm-svn: 262358
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/AMDGPU/extractelt-to-trunc.ll [new file with mode: 0644]