Make bitcast, extractelement, and insertelement considered cheap for speculation.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 30 May 2014 18:34:43 +0000 (18:34 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 30 May 2014 18:34:43 +0000 (18:34 +0000)
commitc8fc08c31b1554bc852cc5fc8241c00bd5ac52b1
tree77eef4aa8797d50b7aa5f7584c1c1b402da72818
parenta0d4c0d1fcb7b6b5cbfc5468bf94329d2e6a223f
Make bitcast, extractelement, and insertelement considered cheap for speculation.

This helps more branches into selects. On R600,
vectors are cheap and anything that helps
remove branches is very good.

llvm-svn: 209914
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/speculate-vector-ops.ll [new file with mode: 0644]