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)
commit3e8ed894845c0b66dcd504ed69a507f601cc4f19
treecd66798d451d7d7d645f1548fc840ac09fd3141d
parenta3edd6a0386363b60ec41ae1407c0149cdd7b259
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212640 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/R600/select64.ll
test/CodeGen/X86/shift-parts.ll