1 ; RUN: opt -passes=newgvn -S < %s | FileCheck %s
3 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:4"
4 target triple = "x86_64-unknown-linux-gnu"
6 define void @f0(i1 %alwaysFalse, i64 %val, ptr %loc) {
11 store i64 %val, ptr %loc
12 br i1 %alwaysFalse, label %neverTaken, label %alwaysTaken
15 %ptr = load ptr addrspace(4), ptr %loc
16 store i8 5, ptr addrspace(4) %ptr
23 define i64 @f1(i1 %alwaysFalse, ptr addrspace(4) %val, ptr %loc) {
28 store ptr addrspace(4) %val, ptr %loc
29 br i1 %alwaysFalse, label %neverTaken, label %alwaysTaken
32 %int = load i64, ptr %loc