diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-08 16:37:49 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-08 16:37:49 +0000 |
commit | 0cb1935db968b200bd25627bdc7a630294007731 (patch) | |
tree | 1c1c6dee711cac40bee4937265d51a8bbbf086a1 /gcc/tree-if-conv.c | |
parent | a2db09d3356b1c8aa5cb45a3923216d546f245cb (diff) | |
download | gcc-0cb1935db968b200bd25627bdc7a630294007731.tar.gz |
Add the -ftree-loop-if-convert flag.
2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
* common.opt (ftree-loop-if-convert): New flag.
* doc/invoke.texi (ftree-loop-if-convert): Documented.
* tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
when flag_tree_loop_if_convert is set.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161963 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-if-conv.c')
-rw-r--r-- | gcc/tree-if-conv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index 8d5d2268ec5..2dd8aa1edd3 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -1239,10 +1239,13 @@ main_tree_if_conversion (void) return changed ? TODO_cleanup_cfg : 0; } +/* Returns true when the if-conversion pass is enabled. */ + static bool gate_tree_if_conversion (void) { - return flag_tree_vectorize != 0; + return ((flag_tree_vectorize && flag_tree_loop_if_convert != 0) + || flag_tree_loop_if_convert == 1); } struct gimple_opt_pass pass_if_conversion = |