summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/CrossWindowsToolChain.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2015-10-29 03:19:10 +0000
committerPhilip Reames <listmail@philipreames.com>2015-10-29 03:19:10 +0000
commitdbbd77921d93235bbda8c970e6a696318ce37a2b (patch)
tree40bce255f0f7bd9abc917059f961595f911c8389 /clang/lib/Driver/CrossWindowsToolChain.cpp
parent846e3e41edc04dbc8fdc14e24420bfe28cdfded3 (diff)
downloadbcm5719-llvm-dbbd77921d93235bbda8c970e6a696318ce37a2b.tar.gz
bcm5719-llvm-dbbd77921d93235bbda8c970e6a696318ce37a2b.zip
[InstSimplify] sgt on i1s also encodes implication
Follow on to http://reviews.llvm.org/D13074, implementing something pointed out by Sanjoy. His truth table from his comment on that bug summarizes things well: LHS | RHS | LHS >=s RHS | LHS implies RHS 0 | 0 | 1 (0 >= 0) | 1 0 | 1 | 1 (0 >= -1) | 1 1 | 0 | 0 (-1 >= 0) | 0 1 | 1 | 1 (-1 >= -1) | 1 The key point is that an "i1 1" is the value "-1", not "1". Differential Revision: http://reviews.llvm.org/D13756 llvm-svn: 251597
Diffstat (limited to 'clang/lib/Driver/CrossWindowsToolChain.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud