diff options
author | Amara Emerson <amara@apple.com> | 2021-10-03 22:26:26 -0700 |
---|---|---|
committer | Amara Emerson <amara@apple.com> | 2021-10-07 23:51:37 -0700 |
commit | 08b3c0d995d83060ae0cf3d3b2f9936da380cf29 (patch) | |
tree | 250539f5c543b522a27a23e474e3b82d686acf81 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h | |
parent | 23800b05be2be19451f6930ab7bd56aad4dab5e1 (diff) | |
download | llvm-08b3c0d995d83060ae0cf3d3b2f9936da380cf29.zip llvm-08b3c0d995d83060ae0cf3d3b2f9936da380cf29.tar.gz llvm-08b3c0d995d83060ae0cf3d3b2f9936da380cf29.tar.bz2 |
[GlobalISel] Combine G_UMULH x, (1 << c)) -> x >> (bitwidth - c)
In order to not generate an unnecessary G_CTLZ, I extended the constant folder
in the CSEMIRBuilder to handle G_CTLZ. I also added some extra handing of
vector constants too. It seems we don't have any support for doing constant
folding of vector constants, so the tests show some other useless G_SUB
instructions too.
Differential Revision: https://reviews.llvm.org/D111036
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h')
0 files changed, 0 insertions, 0 deletions