projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[JumpThreading] Fix opcode bonus in getJumpThreadDuplicationCost()
[oota-llvm.git]
/
test
/
Transforms
/
LoopUnswitch
/
2011-11-18-TwoSwitches-Threshold.ll
diff --git
a/test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches-Threshold.ll
b/test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches-Threshold.ll
index c3bf5966ad05f306882469add9e33ae6d6052b20..393dd5c313a4c0dccdb17b05acb6812f3879eefd 100644
(file)
--- a/
test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches-Threshold.ll
+++ b/
test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches-Threshold.ll
@@
-1,3
+1,4
@@
+; REQUIRES: asserts
; RUN: opt -loop-unswitch -loop-unswitch-threshold 13 -disable-output -stats -info-output-file - < %s | FileCheck --check-prefix=STATS %s
; RUN: opt -S -loop-unswitch -loop-unswitch-threshold 13 -verify-loop-info -verify-dom-info < %s | FileCheck %s
; RUN: opt -loop-unswitch -loop-unswitch-threshold 13 -disable-output -stats -info-output-file - < %s | FileCheck --check-prefix=STATS %s
; RUN: opt -S -loop-unswitch -loop-unswitch-threshold 13 -verify-loop-info -verify-dom-info < %s | FileCheck %s
@@
-51,14
+52,14
@@
define i32 @test(i32* %var) {
%mem = alloca i32
store i32 2, i32* %mem
define i32 @test(i32* %var) {
%mem = alloca i32
store i32 2, i32* %mem
- %c = load i32* %mem
- %d = load i32* %mem
+ %c = load i32
, i32
* %mem
+ %d = load i32
, i32
* %mem
br label %loop_begin
loop_begin:
br label %loop_begin
loop_begin:
- %var_val = load i32* %var
+ %var_val = load i32
, i32
* %var
switch i32 %c, label %second_switch [
i32 1, label %inc
switch i32 %c, label %second_switch [
i32 1, label %inc