Author: Roman Lebedev Date: 2020-12-16T00:38:00+03:00 New Revision: a7deedc414e2abbe4b9557d46e896a5bdba25f2b
URL: https://github.com/llvm/llvm-project/commit/a7deedc414e2abbe4b9557d46e896a5bdba25f2b DIFF: https://github.com/llvm/llvm-project/commit/a7deedc414e2abbe4b9557d46e896a5bdba25f2b.diff LOG: [NFC][Tests][SimplifyCFG] Trim whitespaces at the end of lines Added: Modified: llvm/test/Transforms/SimplifyCFG/2003-08-17-BranchFold.ll llvm/test/Transforms/SimplifyCFG/2003-08-17-BranchFoldOrdering.ll llvm/test/Transforms/SimplifyCFG/2008-05-16-PHIBlockMerge.ll llvm/test/Transforms/SimplifyCFG/2008-12-06-SingleEntryPhi.ll llvm/test/Transforms/SimplifyCFG/PHINode.ll llvm/test/Transforms/SimplifyCFG/PhiBlockMerge2.ll llvm/test/Transforms/SimplifyCFG/PhiEliminate.ll llvm/test/Transforms/SimplifyCFG/PhiNoEliminate.ll llvm/test/Transforms/SimplifyCFG/X86/empty-cleanuppad.ll llvm/test/Transforms/SimplifyCFG/common-code-hoisting.ll llvm/test/Transforms/SimplifyCFG/invoke_unwind.ll llvm/test/Transforms/SimplifyCFG/nomerge.ll llvm/test/Transforms/SimplifyCFG/preserve-make-implicit-on-switch-to-br.ll llvm/test/Transforms/SimplifyCFG/trapping-load-unreachable.ll llvm/test/Transforms/SimplifyCFG/wineh-unreachable.ll Removed: ################################################################################ diff --git a/llvm/test/Transforms/SimplifyCFG/2003-08-17-BranchFold.ll b/llvm/test/Transforms/SimplifyCFG/2003-08-17-BranchFold.ll index f6b068fd79c3..f1d2dbe0c128 100644 --- a/llvm/test/Transforms/SimplifyCFG/2003-08-17-BranchFold.ll +++ b/llvm/test/Transforms/SimplifyCFG/2003-08-17-BranchFold.ll @@ -1,4 +1,4 @@ -; This test checks to make sure that 'br X, Dest, Dest' is folded into +; This test checks to make sure that 'br X, Dest, Dest' is folded into ; 'br Dest' ; RUN: opt < %s -simplifycfg -S | FileCheck %s diff --git a/llvm/test/Transforms/SimplifyCFG/2003-08-17-BranchFoldOrdering.ll b/llvm/test/Transforms/SimplifyCFG/2003-08-17-BranchFoldOrdering.ll index 78049080a64e..570f15258f07 100644 --- a/llvm/test/Transforms/SimplifyCFG/2003-08-17-BranchFoldOrdering.ll +++ b/llvm/test/Transforms/SimplifyCFG/2003-08-17-BranchFoldOrdering.ll @@ -1,6 +1,6 @@ -; This test checks to make sure that 'br X, Dest, Dest' is folded into +; This test checks to make sure that 'br X, Dest, Dest' is folded into ; 'br Dest'. This can only happen after the 'Z' block is eliminated. This is -; due to the fact that the SimplifyCFG function does not use +; due to the fact that the SimplifyCFG function does not use ; the ConstantFoldTerminator function. ; RUN: opt < %s -simplifycfg -S | FileCheck %s diff --git a/llvm/test/Transforms/SimplifyCFG/2008-05-16-PHIBlockMerge.ll b/llvm/test/Transforms/SimplifyCFG/2008-05-16-PHIBlockMerge.ll index 21e9bc7b7f4e..161e74c6e098 100644 --- a/llvm/test/Transforms/SimplifyCFG/2008-05-16-PHIBlockMerge.ll +++ b/llvm/test/Transforms/SimplifyCFG/2008-05-16-PHIBlockMerge.ll @@ -2,7 +2,7 @@ ; RUN: not grep "^BB.tomerge" %t ; RUN: grep "^BB.nomerge" %t | count 4 -; ModuleID = '<stdin>' +; ModuleID = '<stdin>' declare i1 @foo() declare i1 @bar(i32) @@ -78,7 +78,7 @@ Pre-Exit: ; preds = %Succ ; not completely trivial %cond2 = call i1 @foo( ) ; <i1> [#uses=1] br i1 %cond2, label %Succ, label %Exit - + Exit: ; preds = %Pre-Exit ret void } diff --git a/llvm/test/Transforms/SimplifyCFG/2008-12-06-SingleEntryPhi.ll b/llvm/test/Transforms/SimplifyCFG/2008-12-06-SingleEntryPhi.ll index d3c7c320cee3..297ebef2766b 100644 --- a/llvm/test/Transforms/SimplifyCFG/2008-12-06-SingleEntryPhi.ll +++ b/llvm/test/Transforms/SimplifyCFG/2008-12-06-SingleEntryPhi.ll @@ -3,7 +3,7 @@ define i32 @test() { entry: br label %T T: - %C = phi i1 [false, %entry] + %C = phi i1 [false, %entry] br i1 %C, label %X, label %Y X: ret i32 2 diff --git a/llvm/test/Transforms/SimplifyCFG/PHINode.ll b/llvm/test/Transforms/SimplifyCFG/PHINode.ll index 25a242a55997..a024c9d41dba 100644 --- a/llvm/test/Transforms/SimplifyCFG/PHINode.ll +++ b/llvm/test/Transforms/SimplifyCFG/PHINode.ll @@ -1,4 +1,4 @@ -; -simplifycfg is not folding blocks if there is a PHI node involved. This +; -simplifycfg is not folding blocks if there is a PHI node involved. This ; should be fixed eventually ; RUN: opt < %s -simplifycfg -S | FileCheck %s diff --git a/llvm/test/Transforms/SimplifyCFG/PhiBlockMerge2.ll b/llvm/test/Transforms/SimplifyCFG/PhiBlockMerge2.ll index fb5d600f1148..269c9eefa95a 100644 --- a/llvm/test/Transforms/SimplifyCFG/PhiBlockMerge2.ll +++ b/llvm/test/Transforms/SimplifyCFG/PhiBlockMerge2.ll @@ -1,5 +1,5 @@ ; Test merging of blocks that only have PHI nodes in them. This tests the case -; where the mergedinto block doesn't have any PHI nodes, and is in fact +; where the mergedinto block doesn't have any PHI nodes, and is in fact ; dominated by the block-to-be-eliminated ; ; RUN: opt < %s -simplifycfg -S | not grep N: diff --git a/llvm/test/Transforms/SimplifyCFG/PhiEliminate.ll b/llvm/test/Transforms/SimplifyCFG/PhiEliminate.ll index d5ce9a7e6bc8..c8ae22073ccb 100644 --- a/llvm/test/Transforms/SimplifyCFG/PhiEliminate.ll +++ b/llvm/test/Transforms/SimplifyCFG/PhiEliminate.ll @@ -4,7 +4,7 @@ ; 'if conversion'. ; RUN: opt < %s -simplifycfg -S > %t.xform -; RUN: not grep phi %t.xform +; RUN: not grep phi %t.xform ; RUN: grep ret %t.xform declare void @use(i1) diff --git a/llvm/test/Transforms/SimplifyCFG/PhiNoEliminate.ll b/llvm/test/Transforms/SimplifyCFG/PhiNoEliminate.ll index e9902e094422..daf1b69e0520 100644 --- a/llvm/test/Transforms/SimplifyCFG/PhiNoEliminate.ll +++ b/llvm/test/Transforms/SimplifyCFG/PhiNoEliminate.ll @@ -2,7 +2,7 @@ ; RUN: not grep select ;; The PHI node in this example should not be turned into a select, as we are -;; not able to ifcvt the entire block. As such, converting to a select just +;; not able to ifcvt the entire block. As such, converting to a select just ;; introduces inefficiency without saving copies. define i32 @bar(i1 %C) { diff --git a/llvm/test/Transforms/SimplifyCFG/X86/empty-cleanuppad.ll b/llvm/test/Transforms/SimplifyCFG/X86/empty-cleanuppad.ll index ce7621908ff0..10918376a100 100644 --- a/llvm/test/Transforms/SimplifyCFG/X86/empty-cleanuppad.ll +++ b/llvm/test/Transforms/SimplifyCFG/X86/empty-cleanuppad.ll @@ -7,10 +7,10 @@ target triple = "x86_64-pc-windows-msvc18.0.0" ; This case arises when two objects with empty destructors are cleaned up. ; -; void f1() { +; void f1() { ; S a; ; S b; -; g(); +; g(); ; } ; ; In this case, both cleanup pads can be eliminated and the invoke can be @@ -44,7 +44,7 @@ ehcleanup.1: ; preds = %ehcleanup ; outside of a try-block and an object with a non-empty destructor must be ; cleaned up within the try-block. ; -; void f2() { +; void f2() { ; S a; ; try { ; S2 b; @@ -107,7 +107,7 @@ ehcleanup.1: ; outside of a try-block and an object with an empty destructor must be cleaned ; within the try-block. ; -; void f3() { +; void f3() { ; S2 a; ; try { ; S b; @@ -168,7 +168,7 @@ ehcleanup.1: ; This case arises when an object with an empty destructor may require cleanup ; from either inside or outside of a try-block. ; -; void f4() { +; void f4() { ; S a; ; g(); ; try { @@ -184,7 +184,7 @@ ehcleanup.1: ; CHECK: entry: ; CHECK: call void @g ; Note: The cleanuppad simplification will insert an unconditional branch here -; but it will be eliminated, placing the following invoke in the entry BB. +; but it will be eliminated, placing the following invoke in the entry BB. ; CHECK: invoke void @g() ; CHECK: to label %try.cont unwind label %catch.dispatch ; CHECK: catch.dispatch: @@ -373,7 +373,7 @@ return: ; preds = %invoke.cont.1, %cat ; CHECK-NOT: ehcleanup: ; CHECK-NOT: cleanuppad ; CHECK: catch.dispatch: -; CHECK: %x = phi i32 [ 2, %invoke.cont ], [ 1, %entry ], [ %x, %catch.cont ] +; CHECK: %x = phi i32 [ 2, %invoke.cont ], [ 1, %entry ], [ %x, %catch.cont ] ; CHECK: } define void @f8() personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*) { entry: diff --git a/llvm/test/Transforms/SimplifyCFG/common-code-hoisting.ll b/llvm/test/Transforms/SimplifyCFG/common-code-hoisting.ll index 68d0b3693c93..23644bed6ce5 100644 --- a/llvm/test/Transforms/SimplifyCFG/common-code-hoisting.ll +++ b/llvm/test/Transforms/SimplifyCFG/common-code-hoisting.ll @@ -12,7 +12,7 @@ ; void loop(int width) { ; if(width < 1) ; return; -; for(int i = 0; i < width - 1; ++i) { +; for(int i = 0; i < width - 1;+i) { ; f0(); ; f1(); ; } diff --git a/llvm/test/Transforms/SimplifyCFG/invoke_unwind.ll b/llvm/test/Transforms/SimplifyCFG/invoke_unwind.ll index 8559cda24358..0929e64a5b3b 100644 --- a/llvm/test/Transforms/SimplifyCFG/invoke_unwind.ll +++ b/llvm/test/Transforms/SimplifyCFG/invoke_unwind.ll @@ -35,7 +35,7 @@ Rethrow: declare i64 @dummy1() declare i64 @dummy2() -; This testcase checks to see if simplifycfg pass can convert two invoke +; This testcase checks to see if simplifycfg pass can convert two invoke ; instructions to call instructions if they share a common trivial unwind ; block. define i64 @test3(i1 %cond) personality i32 (...)* @__gxx_personality_v0 { @@ -49,25 +49,25 @@ entry: br1: %call1 = invoke i64 @dummy1() to label %invoke.cont unwind label %lpad1 - -br2: + +br2: %call2 = invoke i64 @dummy2() to label %invoke.cont unwind label %lpad2 - + invoke.cont: %c = phi i64 [%call1, %br1], [%call2, %br2] - ret i64 %c - - + ret i64 %c + + lpad1: %0 = landingpad { i8*, i32 } cleanup - br label %rethrow + br label %rethrow rethrow: %lp = phi { i8*, i32 } [%0, %lpad1], [%1, %lpad2] resume { i8*, i32 } %lp - + lpad2: %1 = landingpad { i8*, i32 } cleanup diff --git a/llvm/test/Transforms/SimplifyCFG/nomerge.ll b/llvm/test/Transforms/SimplifyCFG/nomerge.ll index c2d58d93b843..3c220ccdd18e 100644 --- a/llvm/test/Transforms/SimplifyCFG/nomerge.ll +++ b/llvm/test/Transforms/SimplifyCFG/nomerge.ll @@ -1,6 +1,6 @@ ; RUN: opt < %s -O1 -S | FileCheck %s -; The attribute nomerge prevents the 3 bar() calls from being sunk/hoisted into +; The attribute nomerge prevents the 3 bar() calls from being sunk/hoisted into ; one inside a function. Check that there are still 3 tail calls. ; Test case for preventing sinking diff --git a/llvm/test/Transforms/SimplifyCFG/preserve-make-implicit-on-switch-to-br.ll b/llvm/test/Transforms/SimplifyCFG/preserve-make-implicit-on-switch-to-br.ll index 0e95336bbc1f..a67daf9847ee 100644 --- a/llvm/test/Transforms/SimplifyCFG/preserve-make-implicit-on-switch-to-br.ll +++ b/llvm/test/Transforms/SimplifyCFG/preserve-make-implicit-on-switch-to-br.ll @@ -1,7 +1,7 @@ ; RUN: opt %s -simplifycfg -S | FileCheck %s ; ConstantFoldTerminator function can convert SwitchInst with one case (and default) to -; a conditional BranchInst. This test checks the converted BranchInst preserve the +; a conditional BranchInst. This test checks the converted BranchInst preserve the ; make.implicit metadata. declare i32 @consume(i32*) @@ -11,12 +11,12 @@ define i32 @copy-metadata(i32* %x) { entry: %x.int = ptrtoint i32* %x to i64 - + ; CHECK: br i1 %cond, label %is_null, label %default, !make.implicit !0 switch i64 %x.int, label %default [ i64 0, label %is_null ], !make.implicit !0 - + default: %0 = call i32 @consume(i32* %x) ret i32 %0 diff --git a/llvm/test/Transforms/SimplifyCFG/trapping-load-unreachable.ll b/llvm/test/Transforms/SimplifyCFG/trapping-load-unreachable.ll index de847c361a3a..7f904e5598ef 100644 --- a/llvm/test/Transforms/SimplifyCFG/trapping-load-unreachable.ll +++ b/llvm/test/Transforms/SimplifyCFG/trapping-load-unreachable.ll @@ -13,7 +13,7 @@ entry: bb: ; preds = %entry %1 = load volatile i32, i32* null unreachable - + br label %return return: ; preds = %entry ret void diff --git a/llvm/test/Transforms/SimplifyCFG/wineh-unreachable.ll b/llvm/test/Transforms/SimplifyCFG/wineh-unreachable.ll index c5d6490ba5d5..7655fa7875f2 100644 --- a/llvm/test/Transforms/SimplifyCFG/wineh-unreachable.ll +++ b/llvm/test/Transforms/SimplifyCFG/wineh-unreachable.ll @@ -13,7 +13,7 @@ exit: ret void unreachable.unwind: cleanuppad within none [] - unreachable + unreachable } ; CHECK-LABEL: define void @test2() _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits