; RUN: opt -newgvn -S < %s | FileCheck %s ; RUN: opt -passes=newgvn -S -o - %s | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" ;; All the loads in this testcase are useless, but it requires understanding that repeated ;; stores of the same value do not change the memory state to eliminate them. define i32 @foo(i32*, i32) { ; CHECK-LABEL: @foo store i32 5, i32* %0, align 4 %3 = icmp ne i32 %1, 0 br i1 %3, label %4, label %7 ;