Add trunc (select c, a, b) -> select c (trunc a), (trunc b) combine.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 9 Jul 2014 19:12:07 +0000 (19:12 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 9 Jul 2014 19:12:07 +0000 (19:12 +0000)
commit658c5576d1395a6135ff5ab0541e241ac4d12d2d
tree106b91ccb0b9afbf5a2840cca153c94a21f83a46
parentc0b1eae6b450770721cad022bff016557532e581
Add trunc (select c, a, b) -> select c (trunc a), (trunc b) combine.

Do this if the truncate is free and the select is legal.

llvm-svn: 212640
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/R600/select64.ll
llvm/test/CodeGen/X86/shift-parts.ll