R600/SI: Lower i64 SELECT by bitcasting to a vector type
authorTom Stellard <thomas.stellard@amd.com>
Mon, 31 Mar 2014 14:01:55 +0000 (14:01 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 31 Mar 2014 14:01:55 +0000 (14:01 +0000)
commit1f143aa3e97af35f2d0f089b5ece48f103498a75
tree7fd6e52030f59d0c845d536ef4498e6eac5a9990
parent1eaaa949f654df3b5920ae3a5d2572579785008b
R600/SI: Lower i64 SELECT by bitcasting to a vector type

This allows allows us to replace ISD::EXTRACT_ELEMENT, which is lowered
using shifts, with ISD::EXTRACT_VECTOR_ELT, which is a no-op.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205187 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIISelLowering.cpp
lib/Target/R600/SIInstructions.td
test/CodeGen/R600/select64.ll