[NVPTX] Generate a more optimal sequence for select of i1
authorJustin Holewinski <jholewinski@nvidia.com>
Mon, 26 Jan 2015 19:52:20 +0000 (19:52 +0000)
committerJustin Holewinski <jholewinski@nvidia.com>
Mon, 26 Jan 2015 19:52:20 +0000 (19:52 +0000)
Instead of creating a pattern like "(p && a) || ((!p) && b)",
just expand the i8 operands to i32 and perform the selp on them.

Fixes PR22246

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227123 91177308-0d34-0410-b5e6-96231b3b80d8


No differences found