diff options
author | Stepan Dyatkovskiy <stpworld@narod.ru> | 2012-01-11 08:40:51 +0000 |
---|---|---|
committer | Stepan Dyatkovskiy <stpworld@narod.ru> | 2012-01-11 08:40:51 +0000 |
commit | 88c5c42c5c832f599b34a5f5f4d361b9c1eacf6c (patch) | |
tree | 33d98153a070dabe6c876b9d048d1bbdfa294c25 /test/Transforms/LoopUnswitch | |
parent | 69b5df8bf616a0ea0603b21ec8d63bde1b817ba5 (diff) | |
download | external_llvm-88c5c42c5c832f599b34a5f5f4d361b9c1eacf6c.zip external_llvm-88c5c42c5c832f599b34a5f5f4d361b9c1eacf6c.tar.gz external_llvm-88c5c42c5c832f599b34a5f5f4d361b9c1eacf6c.tar.bz2 |
Improved compile time:
1. Size heuristics changed. Now we calculate number of unswitching
branches only once per loop.
2. Some checks was moved from UnswitchIfProfitable to
processCurrentLoop, since it is not changed during processCurrentLoop
iteration. It allows decide to skip some loops at an early stage.
Extended statistics:
- Added total number of instructions analyzed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147935 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LoopUnswitch')
-rw-r--r-- | test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches-Threshold.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches-Threshold.ll b/test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches-Threshold.ll index 21c0ec3..05d98d5 100644 --- a/test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches-Threshold.ll +++ b/test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches-Threshold.ll @@ -1,5 +1,5 @@ -; RUN: opt -loop-unswitch -loop-unswitch-threshold 30 -disable-output -stats -info-output-file - < %s | FileCheck --check-prefix=STATS %s -; RUN: opt -S -loop-unswitch -loop-unswitch-threshold 30 -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 ; STATS: 1 loop-simplify - Number of pre-header or exit blocks inserted ; STATS: 1 loop-unswitch - Number of switches unswitched |