blob: 7f7390809c77ab1f56f6b5a2b3aa6b8444ef9eba [file] [log] [blame]
Dan Gohman18800922009-09-11 18:01:28 +00001; RUN: opt < %s -instcombine -S | grep load
Tanya Lattner5640bd12008-03-01 09:15:35 +00002
3define void @test(i32* %P) {
4 ; Dead but not deletable!
Chris Lattner6a144a22011-11-27 06:54:59 +00005 %X = load volatile i32* %P ; <i32> [#uses=0]
Tanya Lattner5640bd12008-03-01 09:15:35 +00006 ret void
Chris Lattner83da4f82003-09-09 18:15:45 +00007}