diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-10-19 21:23:22 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-10-19 21:23:22 +0000 |
commit | 66f716354527c5ab4687a89a1605915e5128a106 (patch) | |
tree | 56c81a5bb8979cc3df924078dcbfb328a5d9ee64 /lib/CodeGen/TwoAddressInstructionPass.cpp | |
parent | 80629c85f1041df41b5158ebb03a4725af6ecd90 (diff) |
Local spiller optimization:
Turn a store folding instruction into a load folding instruction. e.g.
xorl %edi, %eax
movl %eax, -32(%ebp)
movl -36(%ebp), %eax
orl %eax, -32(%ebp)
=>
xorl %edi, %eax
orl -36(%ebp), %eax
mov %eax, -32(%ebp)
This enables the unfolding optimization for a subsequent instruction which will
also eliminate the newly introduced store instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43192 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TwoAddressInstructionPass.cpp')
0 files changed, 0 insertions, 0 deletions