diff options
author | Chris Lattner <sabre@nondot.org> | 2006-02-03 23:28:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-02-03 23:28:46 +0000 |
commit | 593c95878b089388f9c82b8c7b1f4731af86c792 (patch) | |
tree | 635bc1f03ef6bf49ed3c5a7ba775424113dbdcd9 /lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 66cf80f226e04e6704a78da83e08c7b0af944ef1 (diff) |
Fix a nasty problem on two-address machines in the following situation:
store EAX -> [ss#0]
[ss#0] += 1
...
use(EAX)
In this case, it is not valid to rewrite this as:
store EAX -> [ss#0]
EAX += 1
store EAX -> [ss#0] ;;; this would also delete the store above
...
use(EAX)
... because EAX is not a dead at that point. Keep track of which registers
we are allowed to clobber, and which ones we aren't, and don't clobber the
ones we're not supposed to. :)
This should resolve the issues on X86 last night.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
0 files changed, 0 insertions, 0 deletions