You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
This commit is contained in:
parent
32d52ae4ca
commit
f32dbaf0b2
15
external/llvm/test/Transforms/NewGVN/basic-undef-test.ll
vendored
Normal file
15
external/llvm/test/Transforms/NewGVN/basic-undef-test.ll
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
; RUN: opt -basicaa -newgvn -S < %s | FileCheck %s
|
||||
; ModuleID = 'test3.ll'
|
||||
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
|
||||
|
||||
define i32 @main(i32 *%foo) {
|
||||
entry:
|
||||
; CHECK: load i32, i32* %foo, align 4
|
||||
%0 = load i32, i32* %foo, align 4
|
||||
store i32 5, i32* undef, align 4
|
||||
; CHECK-NOT: load i32, i32* %foo, align 4
|
||||
%1 = load i32, i32* %foo, align 4
|
||||
; CHECK: add i32 %0, %0
|
||||
%2 = add i32 %0, %1
|
||||
ret i32 %2
|
||||
}
|
Reference in New Issue
Block a user