aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-12-31 15:05:21 -0800
committerCraig Topper <craig.topper@intel.com>2019-12-31 15:05:23 -0800
commit1cc8a74de345b66fd340ddc71580ad412e8e2abf (patch)
treeef7e0ee90647f7bf8114b999d93ec2811a62af9a /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent4ae3120ed81cb2f1f73f59a52e2a9965515ea6bf (diff)
downloadllvm-1cc8a74de345b66fd340ddc71580ad412e8e2abf.zip
llvm-1cc8a74de345b66fd340ddc71580ad412e8e2abf.tar.gz
llvm-1cc8a74de345b66fd340ddc71580ad412e8e2abf.tar.bz2
[X86] Use carry flag from add for (seteq (add X, -1), -1).
If we just subtracted 1 and are checking if the result is -1. We can use the carry flag from the ADD instead of an explicit CMP. I'm using the same checks for the add users as EmitTest. Fixes one case from PR44412 Differential Revision: https://reviews.llvm.org/D72019
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions