mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Add two new patterns that instcombine should or does handle
llvm-svn: 2563
This commit is contained in:
parent
a39fc03021
commit
70dd3548b3
@ -23,3 +23,15 @@ int "test3"(int %A) {
|
||||
%C = sub int 0, %B ; C = -B = A
|
||||
ret int %C
|
||||
}
|
||||
|
||||
int "test4"(int %A, int %x) {
|
||||
%B = sub int 0, %A
|
||||
%C = sub int %x, %B
|
||||
ret int %C
|
||||
}
|
||||
|
||||
int "test5"(int %A, int %B, int %C) {
|
||||
%D = sub int %B, %C
|
||||
%E = sub int %A, %D
|
||||
ret int %E
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user