diff options
author | Evan Cheng <evan.cheng@apple.com> | 2005-12-12 20:32:18 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2005-12-12 20:32:18 +0000 |
commit | cbd6ed4d6bd4b48a4344691ad60d441382f85b37 (patch) | |
tree | d0f5d47822cc8d371a2c7806e8aaaef6cfe9cd3b /docs/CommandGuide/llvm-db.pod | |
parent | 110f2243fcd0d6ad93e80eb6ea70b0f234cd15f1 (diff) |
For ISD::RET, if # of operands >= 2, try selection the real data dep. operand
first before the chain.
e.g.
int X;
int foo(int x)
{
x += X + 37;
return x;
}
If chain operand is selected first, we would generate:
movl X, %eax
movl 4(%esp), %ecx
leal 37(%ecx,%eax), %eax
rather than
movl $37, %eax
addl 4(%esp), %eax
addl X, %eax
which does not require %ecx. (Due to ADD32rm not matching.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CommandGuide/llvm-db.pod')
0 files changed, 0 insertions, 0 deletions