mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
add a micro optzn.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50681 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ab3e747c64
commit
88c1baa50c
@ -1691,3 +1691,21 @@ LBB1_1: ## bb.i
|
||||
...
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
We compile:
|
||||
|
||||
int test(int x, int y) {
|
||||
return x-y-1;
|
||||
}
|
||||
|
||||
into (-m64):
|
||||
|
||||
_test:
|
||||
decl %edi
|
||||
movl %edi, %eax
|
||||
subl %esi, %eax
|
||||
ret
|
||||
|
||||
it would be better to codegen as: x+~y (notl+addl)
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
Loading…
x
Reference in New Issue
Block a user