diff options
| author | Haocong.Lu <Haocong.Lu@streamcomputing.com> | 2022-02-12 07:14:31 +0000 |
|---|---|---|
| committer | Ben Shi <ben.shi@streamcomputing.com> | 2022-02-12 07:14:38 +0000 |
| commit | 23a50736004e94704a2393aa36a905d737f2b20f (patch) | |
| tree | 53794b205eb08a69c1402a3b4565cae6322ca713 /lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py | |
| parent | 2e57156fead3c27136aa2f66caad9e4b5c890ca1 (diff) | |
[RISCV] LUI used for address computation should not isAsCheapAsAMove
A LUI instruction with flag RISCVII::MO_HI is usually used in conjunction
with ADDI, and jointly complete address computation. To bind the cost
evaluation of address computation, the LUI should not be regarded as a cheap
move separately, which is consistent with ADDI.
In this test case, it improves the unroll-loop code that the rematerialization
of array's base address miss MachineCSE with Heuristics #1 at isProfitableToCSE.
Reviewed By: asb, frasercrmck
Differential Revision: https://reviews.llvm.org/D118216
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions
