Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In IA32 there is a quick (1 cycle) LEA instruction for loading effective address. The function of LEA is a combination of shift-left and addition. For example LEA dst, src, 2, 4 does dst=src<<2+4. It's usually used but not limited in element address calculation for array.
In current Ia32InstCodeSelector.cpp, the function for translating Op_Shladd HIR generates shl and add. Since LEA has the same semantic, we could deploy it to improve performance.
Attachments
Attachments
Issue Links
- is part of
-
HARMONY-5901 [drlvm][jit]integer MUL, DIV and REM strength reduction
- Closed