mirror of
https://github.com/intel/llvm.git
synced 2026-02-07 16:11:27 +08:00
add a micro optzn.
llvm-svn: 50681
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