diff options
| author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-06-21 19:18:36 +0000 |
|---|---|---|
| committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-06-21 19:18:36 +0000 |
| commit | ac599b69510baf046c915a94a68c36d7a9d64280 (patch) | |
| tree | 8a696710d82db2aa710af009f7ac2da1aaf9b5fe /llvm/test/Transforms | |
| parent | 702e140d68bf615378bfa73004a7d5c982eb414e (diff) | |
| download | bcm5719-llvm-ac599b69510baf046c915a94a68c36d7a9d64280.tar.gz bcm5719-llvm-ac599b69510baf046c915a94a68c36d7a9d64280.zip | |
Revert r335206 "Recommit r333268: [IPSCCP] Use PredicateInfo to propagate facts from cmp instructions."
This reverts commit r335206.
As discussed here: https://reviews.llvm.org/rL333740, a fix will come
tomorrow. In the meanwhile, revert this to fix some bots.
llvm-svn: 335272
Diffstat (limited to 'llvm/test/Transforms')
| -rw-r--r-- | llvm/test/Transforms/IPConstantProp/musttail-call.ll | 4 | ||||
| -rw-r--r-- | llvm/test/Transforms/SCCP/ipsccp-predicated.ll | 68 |
2 files changed, 2 insertions, 70 deletions
diff --git a/llvm/test/Transforms/IPConstantProp/musttail-call.ll b/llvm/test/Transforms/IPConstantProp/musttail-call.ll index 567ca408099..75877585710 100644 --- a/llvm/test/Transforms/IPConstantProp/musttail-call.ll +++ b/llvm/test/Transforms/IPConstantProp/musttail-call.ll @@ -9,7 +9,7 @@ define i8* @start(i8 %v) { %c1 = icmp eq i8 %v, 0 br i1 %c1, label %true, label %false true: - ; CHECK: %ca = musttail call i8* @side_effects(i8 0) + ; CHECK: %ca = musttail call i8* @side_effects(i8 %v) ; CHECK: ret i8* %ca %ca = musttail call i8* @side_effects(i8 %v) ret i8* %ca @@ -34,7 +34,7 @@ define internal i8* @side_effects(i8 %v) { ; is always `null`. ; The call can't be removed due to `external` call above, though. - ; CHECK: %ca = musttail call i8* @start(i8 0) + ; CHECK: %ca = musttail call i8* @start(i8 %v) %ca = musttail call i8* @start(i8 %v) ; Thus the result must be returned anyway diff --git a/llvm/test/Transforms/SCCP/ipsccp-predicated.ll b/llvm/test/Transforms/SCCP/ipsccp-predicated.ll deleted file mode 100644 index 531fbba8f70..00000000000 --- a/llvm/test/Transforms/SCCP/ipsccp-predicated.ll +++ /dev/null @@ -1,68 +0,0 @@ -; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S | FileCheck %s - -define i32 @test1(i32 %v) { -; CHECK-LABEL: @test1( -; CHECK-NEXT: Entry: -; CHECK-NEXT: [[TOBOOL1:%.*]] = icmp eq i32 [[V:%.*]], 10 -; CHECK-NEXT: br i1 [[TOBOOL1]], label [[T:%.*]], label [[F:%.*]] -; CHECK: T: -; CHECK-NEXT: [[R:%.*]] = call i32 @callee(i32 20) -; CHECK-NEXT: ret i32 [[R]] -; CHECK: F: -; CHECK-NEXT: [[X:%.*]] = call i32 @callee(i32 [[V]]) -; CHECK-NEXT: ret i32 [[X]] -; -Entry: - %tobool1 = icmp eq i32 %v, 10 - br i1 %tobool1, label %T, label %F - -T: - %a = add i32 %v, 10 - %r = call i32 @callee(i32 %a) - ret i32 %r - -F: - %x = call i32 @callee(i32 %v) - ret i32 %x -} - - -define internal i32 @test2(i32 %v, i32 %c) { -; CHECK-LABEL: @test2( -; CHECK-NEXT: Entry: -; CHECK-NEXT: [[TOBOOL1:%.*]] = icmp eq i32 [[V:%.*]], 99 -; CHECK-NEXT: br i1 [[TOBOOL1]], label [[T:%.*]], label [[F:%.*]] -; CHECK: T: -; CHECK-NEXT: [[R:%.*]] = call i32 @callee(i32 109) -; CHECK-NEXT: ret i32 [[R]] -; CHECK: F: -; CHECK-NEXT: [[X:%.*]] = call i32 @callee(i32 [[V]]) -; CHECK-NEXT: ret i32 [[X]] -; -Entry: - %tobool1 = icmp eq i32 %v, %c - br i1 %tobool1, label %T, label %F - -T: - %a = add i32 %v, 10 - %r = call i32 @callee(i32 %a) - ret i32 %r - -F: - %x = call i32 @callee(i32 %v) - ret i32 %x -} - -define i32 @caller_test2(i32 %v) { -; CHECK-LABEL: @caller_test2( -; CHECK-NEXT: entry: -; CHECK-NEXT: [[R:%.*]] = call i32 @test2(i32 [[V:%.*]], i32 99) -; CHECK-NEXT: ret i32 [[R]] -; -entry: - %r = call i32 @test2(i32 %v, i32 99) - ret i32 %r -} - -declare i32 @callee(i32) |

