blob: 1d760afe9081b7f0437bdb68c7774049d954c9ec (
plain)
1
2
3
4
5
6
7
8
9
|
; RUN: llvm-as < %s | opt -load-vn -gcse -instcombine | dis | grep sub
int %test(int* %P) {
%X = volatile load int* %P
%Y = volatile load int* %P
%Z = sub int %X, %Y
ret int %Z
}
|