Test source: git
Source: <stdin> -- 1. ModuleToFunctionPassAdaptor -- 1. PassManager<Function> : Skipping NOP -- 2. EarlyCSEPass ---------------------------------------- declare i8 @baz(i8, i8) declare i8 @buz(i8, i8) define i8 @same_parent_combine_diff_attrs(i8 %x, i8 %y) { #0: %c1 = call i8 @baz(noundef i8 %x, noundef i8 %y) nofree memory(none) %c0 = call i8 @baz(i8 %x, noundef i8 %y) nofree memory(none) %r = call i8 @buz(i8 %c0, i8 %c1) ret i8 %r } Transformation seems to be correct! (syntactically equal) -- 3. EarlyCSEPass ---------------------------------------- declare i8 @baz(i8, i8) declare i8 @buz(i8, i8) define i8 @same_parent_combine_diff_attrs(i8 %x, i8 %y) { #0: %c1 = call i8 @baz(noundef i8 %x, noundef i8 %y) nofree memory(none) %c0 = call i8 @baz(i8 %x, noundef i8 %y) nofree memory(none) %r = call i8 @buz(i8 %c0, i8 %c1) ret i8 %r } => declare i8 @baz(i8, i8) declare i8 @buz(i8, i8) define i8 @same_parent_combine_diff_attrs(i8 %x, i8 %y) { #0: %c1 = call i8 @baz(i8 %x, noundef i8 %y) nofree memory(none) %r = call i8 @buz(i8 %c1, i8 %c1) ret i8 %r } Transformation seems to be correct! -- 4. PassManager<Function> : Skipping NOP -- 5. PassManager<Function> : Skipping NOP -- 6. EarlyCSEPass ---------------------------------------- declare ptr @baz.ptr(i8, i8) declare i8 @buz.ptr(ptr, ptr) define i8 @same_parent_combine_diff_attrs_needs_intersect(i8 %x, i8 %y) { #0: %c1 = call ptr @baz.ptr(noundef i8 %x, noundef i8 %y) nonnull nofree memory(none) %c0 = call ptr @baz.ptr(i8 %x, noundef i8 %y) nofree memory(none) %r = call i8 @buz.ptr(ptr %c0, ptr %c1) ret i8 %r } Transformation seems to be correct! (syntactically equal) -- 7. EarlyCSEPass ---------------------------------------- declare ptr @baz.ptr(i8, i8) declare i8 @buz.ptr(ptr, ptr) define i8 @same_parent_combine_diff_attrs_needs_intersect(i8 %x, i8 %y) { #0: %c1 = call ptr @baz.ptr(noundef i8 %x, noundef i8 %y) nonnull nofree memory(none) %c0 = call ptr @baz.ptr(i8 %x, noundef i8 %y) nofree memory(none) %r = call i8 @buz.ptr(ptr %c0, ptr %c1) ret i8 %r } => declare ptr @baz.ptr(i8, i8) declare i8 @buz.ptr(ptr, ptr) define i8 @same_parent_combine_diff_attrs_needs_intersect(i8 %x, i8 %y) { #0: %c1 = call ptr @baz.ptr(i8 %x, noundef i8 %y) nofree memory(none) %r = call i8 @buz.ptr(ptr %c1, ptr %c1) ret i8 %r } Transformation seems to be correct! -- 8. PassManager<Function> : Skipping NOP -- 9. PassManager<Function> : Skipping NOP -- 10. EarlyCSEPass ---------------------------------------- declare float @baz.fp(float, float) declare i8 @buz.fp(float, float) define i8 @same_parent_combine_diff_attrs_fmf(float %x, float %y) { #0: %c1 = call float @baz.fp(noundef float %x, noundef float %y) NNaN nofree memory(read) %c0 = call float @baz.fp(float %x, noundef float %y) NNaN nofree memory(read) %r = call i8 @buz.fp(float %c0, float %c1) ret i8 %r } Transformation seems to be correct! (syntactically equal) -- 11. EarlyCSEPass ---------------------------------------- declare float @baz.fp(float, float) declare i8 @buz.fp(float, float) define i8 @same_parent_combine_diff_attrs_fmf(float %x, float %y) { #0: %c1 = call float @baz.fp(noundef float %x, noundef float %y) NNaN nofree memory(read) %c0 = call float @baz.fp(float %x, noundef float %y) NNaN nofree memory(read) %r = call i8 @buz.fp(float %c0, float %c1) ret i8 %r } => declare float @baz.fp(float, float) declare i8 @buz.fp(float, float) define i8 @same_parent_combine_diff_attrs_fmf(float %x, float %y) { #0: %c1 = call float @baz.fp(float %x, noundef float %y) NNaN nofree memory(read) %r = call i8 @buz.fp(float %c1, float %c1) ret i8 %r } Transformation seems to be correct! -- 12. PassManager<Function> : Skipping NOP -- 13. PassManager<Function> : Skipping NOP -- 14. EarlyCSEPass ---------------------------------------- declare float @baz.fp(float, float) declare i8 @buz.fp(float, float) define i8 @same_parent_combine_diff_attrs_fmf2(float %x, float %y) { #0: %c1 = call float @baz.fp(noundef float %x, noundef float %y) NNaN nofree memory(none) %c0 = call float @baz.fp(float %x, noundef float %y) NNaN nofree memory(none) %r = call i8 @buz.fp(float %c0, float %c1) ret i8 %r } Transformation seems to be correct! (syntactically equal) -- 15. EarlyCSEPass ---------------------------------------- declare float @baz.fp(float, float) declare i8 @buz.fp(float, float) define i8 @same_parent_combine_diff_attrs_fmf2(float %x, float %y) { #0: %c1 = call float @baz.fp(noundef float %x, noundef float %y) NNaN nofree memory(none) %c0 = call float @baz.fp(float %x, noundef float %y) NNaN nofree memory(none) %r = call i8 @buz.fp(float %c0, float %c1) ret i8 %r } => declare float @baz.fp(float, float) declare i8 @buz.fp(float, float) define i8 @same_parent_combine_diff_attrs_fmf2(float %x, float %y) { #0: %c1 = call float @baz.fp(float %x, noundef float %y) NNaN nofree memory(none) %r = call i8 @buz.fp(float %c1, float %c1) ret i8 %r } Transformation seems to be correct! -- 16. PassManager<Function> : Skipping NOP -- 17. PassManager<Function> : Skipping NOP -- 18. EarlyCSEPass ---------------------------------------- declare ptr @baz.ptr(i8, i8) declare i8 @buz.ptr(ptr, ptr) define i8 @same_parent_combine_diff_attrs_needs_intersect2(i8 %x, i8 %y) { #0: %c1 = call ptr @baz.ptr(noundef i8 %x, noundef i8 %y) nonnull nofree memory(read) %c0 = call ptr @baz.ptr(i8 %x, noundef i8 %y) nofree memory(read) %r = call i8 @buz.ptr(ptr %c0, ptr %c1) ret i8 %r } Transformation seems to be correct! (syntactically equal) -- 19. EarlyCSEPass ---------------------------------------- declare ptr @baz.ptr(i8, i8) declare i8 @buz.ptr(ptr, ptr) define i8 @same_parent_combine_diff_attrs_needs_intersect2(i8 %x, i8 %y) { #0: %c1 = call ptr @baz.ptr(noundef i8 %x, noundef i8 %y) nonnull nofree memory(read) %c0 = call ptr @baz.ptr(i8 %x, noundef i8 %y) nofree memory(read) %r = call i8 @buz.ptr(ptr %c0, ptr %c1) ret i8 %r } => declare ptr @baz.ptr(i8, i8) declare i8 @buz.ptr(ptr, ptr) define i8 @same_parent_combine_diff_attrs_needs_intersect2(i8 %x, i8 %y) { #0: %c1 = call ptr @baz.ptr(i8 %x, noundef i8 %y) nofree memory(read) %r = call i8 @buz.ptr(ptr %c1, ptr %c1) ret i8 %r } Transformation doesn't verify! (unsound) ERROR: Source is more defined than target Example: i8 %x = #x00 (0) i8 %y = #x00 (0) Source: ptr %c1 = pointer(non-local, block_id=0, offset=4) / Address=#x4 ptr %c0 = null i8 %r = function did not return! SOURCE MEMORY STATE =================== NON-LOCAL BLOCKS: Block 0 > size: 0 align: 1 alloc type: 0 alive: false address: 0 Block 1 > size: 3 align: 34359738368 alloc type: 0 alive: true address: 8 Block 2 > size: 0 align: 4294967296 alloc type: 0 alive: true address: 1 Block 3 > size: 0 align: 524288 alloc type: 0 alive: true address: 8 Target: ptr %c1 = null i8 %r = function did not return! Pass: EarlyCSEPass 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' '-S' '-passes=early-cse' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats' Wrote bitcode to: "/home/nlopes/alive2/build/logs/in_wXOfX8Re_vubP.bc" ------------------- SMT STATS ------------------- Num queries: 41 Num invalid: 0 Num skips: 0 Num trivial: 27 (39.7%) Num timeout: 0 (0.0%) Num errors: 0 (0.0%) Num SAT: 33 (80.5%) Num UNSAT: 8 (19.5%) Alive2: Transform doesn't verify; aborting!
RUN: at line 2: /home/nlopes/alive2/build/opt-alive.sh -S -passes=early-cse < /bitbucket/nlopes/llvm/llvm/test/Transforms/EarlyCSE/replace-calls-def-attrs.ll | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/EarlyCSE/replace-calls-def-attrs.ll + /home/nlopes/alive2/build/opt-alive.sh -S -passes=early-cse + /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/EarlyCSE/replace-calls-def-attrs.ll FileCheck error: '<stdin>' is empty. FileCheck command line: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/EarlyCSE/replace-calls-def-attrs.ll