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) / Address=#x20

Source:
ptr %v = pointer(non-local, block_id=1, offset=0) / Address=#x20
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: 9
Block 3 >	size: 7	align: 1	alloc type: 0	alive: true	address: 2

Target:
ptr %v = pointer(non-local, block_id=1, offset=0) / Address=#x20
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_AhmS8ikI_mjWJ.bc"


------------------- SMT STATS -------------------
Num queries: 35
Num invalid: 0
Num skips:   0
Num trivial: 3 (7.9%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     22 (62.9%)
Num UNSAT:   13 (37.1%)
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