1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

load null is undefined behavior, this should fold

llvm-svn: 16498
This commit is contained in:
Chris Lattner 2004-09-23 15:45:20 +00:00
parent 67f6472f19
commit e9a2c15dac

View File

@ -136,3 +136,9 @@ int %test15d(int %X) { ;; Alternate code sequence for (X & 16) ? 16 : 0
%t3 = select bool %t2, int 16, int 0 ;; X & 16
ret int %t3
}
int %test16(bool %C, int* %P) {
%P2 = select bool %C, int* %P, int* null
%V = load int* %P2
ret int %V
}