[polly] r287626 - [test] Simplify test case by removing unreferenced instructions [NFC]

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 21 23:18:58 PST 2016


Author: grosser
Date: Tue Nov 22 01:18:57 2016
New Revision: 287626

URL: http://llvm.org/viewvc/llvm-project?rev=287626&view=rev
Log:
[test] Simplify test case by removing unreferenced instructions [NFC]

Drop instructions that do not influence the memory impact of a basic block.
They are not needed to reproduce the original bug (verified) and will cause
random test noise if we would decide to only model the instructions that
have visible side-effects.

Modified:
    polly/trunk/test/Isl/CodeGen/invariant_verify_function_failed_2.ll

Modified: polly/trunk/test/Isl/CodeGen/invariant_verify_function_failed_2.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/Isl/CodeGen/invariant_verify_function_failed_2.ll?rev=287626&r1=287625&r2=287626&view=diff
==============================================================================
--- polly/trunk/test/Isl/CodeGen/invariant_verify_function_failed_2.ll (original)
+++ polly/trunk/test/Isl/CodeGen/invariant_verify_function_failed_2.ll Tue Nov 22 01:18:57 2016
@@ -11,8 +11,6 @@
 ; SCOPS-NEXT:                 [p_0] -> { Stmt_if_then2457[] : p_0 = 1 };
 ; SCOPS-NEXT:             Schedule :=
 ; SCOPS-NEXT:                 [p_0] -> { Stmt_if_then2457[] -> [1] };
-; SCOPS-NEXT:             ReadAccess :=	[Reduction Type: NONE] [Scalar: 1]
-; SCOPS-NEXT:                 [p_0] -> { Stmt_if_then2457[] -> MemRef_tmp[] };
 ; SCOPS-NEXT:             MustWriteAccess :=	[Reduction Type: NONE] [Scalar: 1]
 ; SCOPS-NEXT:                 [p_0] -> { Stmt_if_then2457[] -> MemRef_sub2464[] };
 ; SCOPS-NEXT:     	Stmt_cond_false2468
@@ -53,11 +51,9 @@ for.body2414:
 
 if.else2454:                                      ; preds = %for.body2414
   %cmp2455 = icmp eq i64 %indvars.iv902, 2
-  %tmp = load %struct.s*, %struct.s** @enc_picture, align 8, !tbaa !1
   br i1 %cmp2455, label %if.then2457, label %if.else2493
 
 if.then2457:                                      ; preds = %if.else2454
-  %top_poc = getelementptr inbounds %struct.s, %struct.s* %tmp, i64 0, i32 2
   %arrayidx2461 = getelementptr inbounds %struct.s**, %struct.s*** %listX, i64 %indvars.iv902
   %tmp1 = load %struct.s**, %struct.s*** %arrayidx2461, align 8, !tbaa !1
   %arrayidx2462 = getelementptr inbounds %struct.s*, %struct.s** %tmp1, i64 0




More information about the llvm-commits mailing list