1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -mem2reg < %s -S | FileCheck %s
4 define void @patatino() {
5 ; CHECK-LABEL: @patatino(
8 ; CHECK-NEXT: [[DEC:%.*]] = add nsw i32 poison, -1
9 ; CHECK-NEXT: br label [[CANTREACHME:%.*]]
11 %a = alloca i32, align 4
14 %dec = add nsw i32 %tmp, -1
15 store i32 %dec, i32* %a
16 store i32 %tmp, i32* %a
17 %tmp = load i32, i32* %a