diff options
author | Michael Kuperstein <mkuper@google.com> | 2016-08-01 19:39:49 +0000 |
---|---|---|
committer | Michael Kuperstein <mkuper@google.com> | 2016-08-01 19:39:49 +0000 |
commit | c97da7f3a44c2358cc50737e1567cd69d2abe695 (patch) | |
tree | 86ed76a264f65222d8d0b8ce14a46a94586de7d8 /llvm/lib/Target/Hexagon | |
parent | 8123b966cb7b8dd117b7d0355d2e17b7a47bb911 (diff) | |
download | bcm5719-llvm-c97da7f3a44c2358cc50737e1567cd69d2abe695.tar.gz bcm5719-llvm-c97da7f3a44c2358cc50737e1567cd69d2abe695.zip |
[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.
llvm-svn: 277371
Diffstat (limited to 'llvm/lib/Target/Hexagon')
0 files changed, 0 insertions, 0 deletions