1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -passes=early-cse -earlycse-debug-hash < %s | FileCheck %s
4 declare void @readnone_may_unwind() readnone
6 define void @f(ptr %ptr) {
8 ; CHECK-NEXT: store i32 100, ptr [[PTR:%.*]], align 4
9 ; CHECK-NEXT: call void @readnone_may_unwind()
10 ; CHECK-NEXT: store i32 200, ptr [[PTR]], align 4
11 ; CHECK-NEXT: ret void
14 store i32 100, ptr %ptr
15 call void @readnone_may_unwind()
16 store i32 200, ptr %ptr