summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LexicalScopes.h
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
commit5a5a0640d8654558eb49fd485a124a4e4e52e494 (patch)
tree265d9ba2767d934975cfcf02e9b8344d41f23e99 /include/llvm/CodeGen/LexicalScopes.h
parent73282018a19a0a4d4fc8ac44d6a2040dc05fcadb (diff)
downloadllvm-5a5a0640d8654558eb49fd485a124a4e4e52e494.tar.gz
llvm-5a5a0640d8654558eb49fd485a124a4e4e52e494.tar.bz2
llvm-5a5a0640d8654558eb49fd485a124a4e4e52e494.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208641 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LexicalScopes.h')
0 files changed, 0 insertions, 0 deletions