[llvm] d1e6103 - [test] Rewrite various tests to not use constprop
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 26 12:57:32 PDT 2020
Author: Arthur Eubanks
Date: 2020-08-26T12:57:12-07:00
New Revision: d1e6103a791309764f2a281eb3a5da01b9946511
URL: https://github.com/llvm/llvm-project/commit/d1e6103a791309764f2a281eb3a5da01b9946511
DIFF: https://github.com/llvm/llvm-project/commit/d1e6103a791309764f2a281eb3a5da01b9946511.diff
LOG: [test] Rewrite various tests to not use constprop
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D86653
Added:
Modified:
llvm/test/Transforms/Inline/externally_available.ll
llvm/test/Transforms/Reassociate/2002-05-15-SubReassociate.ll
llvm/test/Transforms/Reassociate/fast-SubReassociate.ll
llvm/test/Transforms/Reassociate/otherops.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/Inline/externally_available.ll b/llvm/test/Transforms/Inline/externally_available.ll
index ba316f134cb7..0785dabf8468 100644
--- a/llvm/test/Transforms/Inline/externally_available.ll
+++ b/llvm/test/Transforms/Inline/externally_available.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -constprop -S | FileCheck %s
+; RUN: opt < %s -inline -S | FileCheck %s
define available_externally i32 @test_function() {
; CHECK-NOT: @test_function
@@ -16,7 +16,8 @@ entry:
%B = add i32 %A, 1
ret i32 %B
-; CHECK: ret i32 5
+; CHECK: add i32
+; CHECK-NEXT: ret i32
}
; CHECK-NOT: @test_function
diff --git a/llvm/test/Transforms/Reassociate/2002-05-15-SubReassociate.ll b/llvm/test/Transforms/Reassociate/2002-05-15-SubReassociate.ll
index f3709c819d98..31459deca8b2 100644
--- a/llvm/test/Transforms/Reassociate/2002-05-15-SubReassociate.ll
+++ b/llvm/test/Transforms/Reassociate/2002-05-15-SubReassociate.ll
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -constprop -instcombine -dce -S | FileCheck %s
+; RUN: opt < %s -reassociate -instcombine -dce -S | FileCheck %s
; With sub reassociation, constant folding can eliminate all of the constants.
define i32 @test1(i32 %A, i32 %B) {
diff --git a/llvm/test/Transforms/Reassociate/fast-SubReassociate.ll b/llvm/test/Transforms/Reassociate/fast-SubReassociate.ll
index 7f9d2f1ce366..74ed65cb4e14 100644
--- a/llvm/test/Transforms/Reassociate/fast-SubReassociate.ll
+++ b/llvm/test/Transforms/Reassociate/fast-SubReassociate.ll
@@ -1,5 +1,5 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -constprop -instcombine -S | FileCheck %s
+; RUN: opt < %s -reassociate -instcombine -S | FileCheck %s
define float @test1(float %A, float %B) {
; CHECK-LABEL: @test1(
diff --git a/llvm/test/Transforms/Reassociate/otherops.ll b/llvm/test/Transforms/Reassociate/otherops.ll
index 7718881d8e51..72d8e01faf65 100644
--- a/llvm/test/Transforms/Reassociate/otherops.ll
+++ b/llvm/test/Transforms/Reassociate/otherops.ll
@@ -1,6 +1,6 @@
; Reassociation should apply to Add, Mul, And, Or, & Xor
;
-; RUN: opt < %s -reassociate -constprop -instcombine -die -S | FileCheck %s
+; RUN: opt < %s -reassociate -instcombine -die -S | FileCheck %s
define i32 @test_mul(i32 %arg) {
; CHECK-LABEL: test_mul
More information about the llvm-commits
mailing list