commit | 8be735fdf712e2f32d898f7099db77eb801e92b4 | [log] [tgz] |
---|---|---|
author | Michael Kuperstein <mkuper@google.com> | Mon Aug 01 19:39:49 2016 +0000 |
committer | Michael Kuperstein <mkuper@google.com> | Mon Aug 01 19:39:49 2016 +0000 |
tree | f716f0ebacef6d18aaed3dd42496dfe7e071db39 | |
parent | 16082a39ea9fed8b360a8d342e0dc37cc46c1944 [diff] |
[DAGCombine] Make sext(setcc) combine respect getBooleanContents We used to combine "sext(setcc x, y, cc) -> (select (setcc x, y, cc), -1, 0)" Instead, we should combine to (select (setcc x, y, cc), T, 0) where the value of T is 1 or -1, depending on the type of the setcc, and getBooleanContents() for the type if it is not i1. This fixes PR28504. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277371 91177308-0d34-0410-b5e6-96231b3b80d8