DynamoRIO / DynamoRIO/dynamorio

optimize drutil_insert_get_mem_addr() for cases where lea not needed

Open
#729 4 comments 0 reactions 0 assignees View on GitHub
Migrated Performance Priority-Low Type-Feature
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 15h
Merged PRs (30d)
31

Description

_From [bruen...@google.com](https://code.google.com/u/109494838902877177630/) on April 12, 2012 10:24:36_

one case from timur:

For
...
mov (%eax) -> %eax
...
original instruction
drutil_insert_get_mem_addr(..., REG_XAX, REG_XCX)
produces
...
[spill
lea (%eax) -> %eax
mov (%eax) -> %eax
...
Is there any reason to create `lea` at all here?
Maybe it could just avoid emitting anything?

_Original issue: http://code.google.com/p/dynamorio/issues/detail?id=729_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.