summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen/TableGenBackend.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2014-05-12 23:26:58 +0000
committerPete Cooper <peter_cooper@apple.com>2014-05-12 23:26:58 +0000
commit7fd1d725b96ee4a2778a6c3661a4df903dbd2483 (patch)
treee968c04476ea4934a9064ce8ecdd0b4beab61bff /llvm/lib/TableGen/TableGenBackend.cpp
parent5d78558c2b99c7eb417c64c93c4ea368b3930d4b (diff)
downloadbcm5719-llvm-7fd1d725b96ee4a2778a6c3661a4df903dbd2483.tar.gz
bcm5719-llvm-7fd1d725b96ee4a2778a6c3661a4df903dbd2483.zip
Use a logical not when inverting SetCC. This unfortunately doesn't fire on any targets so I couldn't find a test case to trigger it.
The problem occurs when a non-i1 setcc is inverted. For example 'i8 = setcc' will get 'xor 0xff' to invert this. This is clearly wrong when the boolean contents are ZeroOrOne. This patch introduces getLogicalNOT and updates SetCC legalisation to use it. Reviewed by Hal Finkel. llvm-svn: 208641
Diffstat (limited to 'llvm/lib/TableGen/TableGenBackend.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud