diff options
| author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2024-05-23 01:26:48 +0800 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-23 01:26:48 +0800 | 
| commit | f2bbb4cb3e211de82987b280aa98565bd3ff6ce7 (patch) | |
| tree | d0d1f01691a05d989c6b824352a9f68e2d023051 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp | |
| parent | f203cb03d93240cfd79e603b742006f96227a00b (diff) | |
| download | llvm-f2bbb4cb3e211de82987b280aa98565bd3ff6ce7.zip llvm-f2bbb4cb3e211de82987b280aa98565bd3ff6ce7.tar.gz llvm-f2bbb4cb3e211de82987b280aa98565bd3ff6ce7.tar.bz2 | |
[GISel][RISCV] Legalize `G_{U|S}DIVREM` (#93067)
This patch expands `G_{U|S}DIVREM` into `G_{U|S}DIV + G_{U|S}REM`.
`G_{U|S}DIVREM` is generated by the following fold:
https://github.com/llvm/llvm-project/blob/4ea21a0261cd8599a9ffa15f5c554ab0d4bbbe27/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp#L1410-L1471
It always folds `div + rem` pairs into `divrem` during pre-legalization.
I tried to change `isLegalOrBeforeLegalizer` to `isLegal`, but it
produced worse codegen on AArch64.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp')
0 files changed, 0 insertions, 0 deletions
