[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / llvm / test / Transforms / EarlyCSE / readnone-mayunwind.ll
blob9b2ae3b7eba4cfec4e2b24c400937821ace69b12
1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -early-cse -earlycse-debug-hash < %s | FileCheck %s
4 declare void @readnone_may_unwind() readnone
6 define void @f(ptr %ptr) {
7 ; CHECK-LABEL: @f(
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
17   ret void