mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +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:
@@ -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)
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
Reference in New Issue
Block a user