diff options
author | Craig Topper <craig.topper@intel.com> | 2018-12-17 20:02:16 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-12-17 20:02:16 +0000 |
commit | 728cbc0378d165e71302884ea5f6476759ba4de5 (patch) | |
tree | da56b416f84735820aa15cd370caa2d9e1ca709a /lldb/packages/Python/lldbsuite/test/python_api/frame | |
parent | 799b7165927363c40e297d6278a937920af89346 (diff) | |
download | bcm5719-llvm-728cbc0378d165e71302884ea5f6476759ba4de5.tar.gz bcm5719-llvm-728cbc0378d165e71302884ea5f6476759ba4de5.zip |
Convert (CMP (srl/shl X, C), 0) to (CMP (and X, C'), 0) when only the zero flag is used.
This allows a TEST to be used and can be combined with any AND that may already exist as an input to the shift.
This was already done in EmitTest, but was easily tricked by multiple uses because the setcc might be used by multiple instructions. Once the SETCC and users are legalized then we can look for the shift to be used by a single CMP, but the CMP itself can have multiple users.
This appears to fix the case in PR39968.
llvm-svn: 349385
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/frame')
0 files changed, 0 insertions, 0 deletions