summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorMichael Kuperstein <mkuper@google.com>2016-08-01 19:39:49 +0000
committerMichael Kuperstein <mkuper@google.com>2016-08-01 19:39:49 +0000
commitc97da7f3a44c2358cc50737e1567cd69d2abe695 (patch)
tree86ed76a264f65222d8d0b8ce14a46a94586de7d8 /llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
parent8123b966cb7b8dd117b7d0355d2e17b7a47bb911 (diff)
downloadbcm5719-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/HexagonISelDAGToDAG.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud