Test Failure: Transforms/InstCombine/align-attr.ll

Test source: git

Log:

Source: <stdin>
-- 1. ModuleToFunctionPassAdaptor
-- 1. PassManager<Function> : Skipping NOP
-- 2. InstCombinePass

----------------------------------------
define i32 @foo1(ptr align(32) %a) {
entry:
  %#0 = load i32, ptr align(32) %a, align 4
  ret i32 %#0
}
Transformation seems to be correct! (syntactically equal)

-- 3. InstCombinePass

----------------------------------------
define i32 @foo1(ptr align(32) %a) {
entry:
  %#0 = load i32, ptr align(32) %a, align 4
  ret i32 %#0
}
Transformation seems to be correct! (syntactically equal)

-- 4. PassManager<Function> : Skipping NOP
-- 5. PassManager<Function> : Skipping NOP
-- 6. InstCombinePass

----------------------------------------
declare ptr @func1(returned ptr)

define i32 @foo2(ptr align(32) %a) {
entry:
  %v = call ptr @func1(returned ptr align(32) %a)
  %#0 = load i32, ptr %v, align 4
  ret i32 %#0
}
Transformation seems to be correct! (syntactically equal)

-- 7. InstCombinePass

----------------------------------------
declare ptr @func1(returned ptr)

define i32 @foo2(ptr align(32) %a) {
entry:
  %v = call ptr @func1(returned ptr align(32) %a)
  %#0 = load i32, ptr %v, align 4
  ret i32 %#0
}
=>
declare ptr @func1(returned ptr)

define i32 @foo2(ptr align(32) %a) {
entry:
  %v = call ptr @func1(returned ptr align(32) %a)
  %#0 = load i32, ptr align(32) %a, align 32
  ret i32 %#0
}
Transformation doesn't verify! (unsound)
ERROR: Source is more defined than target

Example:
ptr align(32) %a = pointer(non-local, block_id=1, offset=0)

Source:
ptr %v = pointer(non-local, block_id=1, offset=0)
i32 %#0 = poison

SOURCE MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 4	alloc type: 0	alive: false	address: 0
Block 1 >	size: 4	align: 1	alloc type: 0	alive: true	address: 32
Block 2 >	size: 2	align: 1	alloc type: 0	alive: true	address: 1
Block 3 >	size: 1	align: 4	alloc type: 0	alive: true

Target:
ptr %v = pointer(non-local, block_id=1, offset=0)
i32 %#0 = UB triggered!


Pass: InstCombinePass
Command line: '/home/nlopes/llvm/build/bin/opt' '-load=/home/nlopes/alive2/build/tv/tv.so' '-load-pass-plugin=/home/nlopes/alive2/build/tv/tv.so' '-tv-exit-on-error' '-passes=instcombine' '-S' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats'
Wrote bitcode to: "/home/nlopes/alive2/build/logs/in_iulkOJH2_JKvv.bc"


------------------- SMT STATS -------------------
Num queries: 31
Num invalid: 0
Num skips:   0
Num trivial: 3 (8.8%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     19 (61.3%)
Num UNSAT:   12 (38.7%)
Alive2: Transform doesn't verify; aborting!

stderr:

RUN: at line 2: /home/nlopes/alive2/build/opt-alive.sh < /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/align-attr.ll -passes=instcombine -S | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/align-attr.ll
+ /home/nlopes/alive2/build/opt-alive.sh -passes=instcombine -S
+ /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/align-attr.ll

FileCheck error: '<stdin>' is empty.
FileCheck command line:  /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/align-attr.ll

 

<-- Back