1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes='early-cse<memssa>' -earlycse-debug-hash -S %s | FileCheck %s
4 @b = external global i32
6 define void @patatino() {
7 ; CHECK-LABEL: @patatino(
8 ; CHECK-NEXT: for.cond:
9 ; CHECK-NEXT: br i1 true, label [[IF_END:%.*]], label [[FOR_INC:%.*]]
11 ; CHECK-NEXT: [[TINKYWINKY:%.*]] = load i32, ptr @b, align 4
12 ; CHECK-NEXT: br i1 true, label [[FOR_INC]], label [[FOR_INC]]
14 ; CHECK-NEXT: ret void
17 br i1 true, label %if.end, label %for.inc
20 %tinkywinky = load i32, ptr @b
21 store i32 %tinkywinky, ptr @b
22 br i1 true, label %for.inc, label %for.inc