blob: 3e0cf1247d90fca58c65bfe635ce7b6c9f5fd751 [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!
David Blaikiea79ac142015-02-27 21:17:42 +00005 %X = load volatile i32, i32* %P ; <i32> [#uses=0]
Tanya Lattner5640bd12008-03-01 09:15:35 +00006 ret void
Chris Lattner83da4f82003-09-09 18:15:45 +00007}