summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-10-14 06:47:56 +0000
committerCraig Topper <craig.topper@intel.com>2019-10-14 06:47:56 +0000
commitf4d03213f3ca31c67339a82489fc930f4cfd56f6 (patch)
tree5f16461687cdd6f4190ab845acd6dd39c51c0826 /lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp
parentf89e758d886a40aa44f13c4ab488c06fc8892654 (diff)
downloadbcm5719-llvm-f4d03213f3ca31c67339a82489fc930f4cfd56f6.tar.gz
bcm5719-llvm-f4d03213f3ca31c67339a82489fc930f4cfd56f6.zip
[X86] Teach EmitTest to handle ISD::SSUBO/USUBO in order to use the Z flag from the subtract directly during isel.
This prevents isel from emitting a TEST instruction that optimizeCompareInstr will need to remove later. In some of the modified tests, the SUB gets duplicated due to the flags being needed in two places and being clobbered in between. optimizeCompareInstr was able to optimize away the TEST that was using the result of one of them, but optimizeCompareInstr doesn't know to turn SUB into CMP after removing the TEST. It only knows how to turn SUB into CMP if the result was already dead. With this change the TEST never exists, so optimizeCompareInstr doesn't have to remove it. Then it can just turn the SUB into CMP immediately. Fixes PR43649. llvm-svn: 374755
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud