mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 18:31:23 +00:00
add a simple hack
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
97d37260df
commit
44cb8efdc1
@ -1573,3 +1573,15 @@ _test:
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
We can fold a store into "zeroing a reg". Instead of:
|
||||
|
||||
xorl %eax, %eax
|
||||
movl %eax, 124(%esp)
|
||||
|
||||
we should get:
|
||||
|
||||
movl $0, 124(%esp)
|
||||
|
||||
if the flags of the xor are dead.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
Loading…
Reference in New Issue
Block a user