Home | History | Annotate | Download | only in EarlyCSE
      1 ; RUN: opt -S -early-cse < %s | FileCheck %s
      2 
      3 declare void @readnone_may_unwind() readnone
      4 
      5 define void @f(i32* %ptr) {
      6 ; CHECK-LABEL: @f(
      7 ; CHECK: store i32 100, i32* %ptr
      8 ; CHECK: call void @readnone_may_unwind()
      9 ; CHECK: store i32 200, i32* %ptr
     10 
     11   store i32 100, i32* %ptr
     12   call void @readnone_may_unwind()
     13   store i32 200, i32* %ptr
     14   ret void
     15 }
     16