brintos

brintos / llvm-project-archived public Read only

0
0
Text · 610 B · 1b10f6a Raw
22 lines · plain
1; RUN: opt -S -passes=early-cse -earlycse-debug-hash < %s | FileCheck %s2 3; This test isn't directly related to EarlyCSE or varargs.  It is just4; using these as a vehicle for testing the correctness of5; haveSameSpecialState around operand bundles.6 7declare i32 @foo(...)8 9define i32 @f() {10; CHECK-LABEL: @f(11 entry:12; CHECK: %v0 = call i32 (...) @foo(13; CHECK: %v1 = call i32 (...) @foo(14; CHECK: %v = add i32 %v0, %v115; CHECK: ret i32 %v16 17  %v0 = call i32 (...) @foo(i32 10) readonly [ "foo"(i32 20) ]18  %v1 = call i32 (...) @foo() readonly [ "foo"(i32 10, i32 20) ]19  %v = add i32 %v0, %v120  ret i32 %v21}22