diff options
author | zqchen <zqchen@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-09 05:30:36 +0000 |
---|---|---|
committer | zqchen <zqchen@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-09 05:30:36 +0000 |
commit | ee828140403210d87472b58ab4e1ecb80f579740 (patch) | |
tree | fa424604153880fba58f911b58a8fd6e973ae8d9 /gcc/shrink-wrap.h | |
parent | f67c2dde7b676e237578daf7ad170ffb7be38e32 (diff) | |
download | gcc-ee828140403210d87472b58ab4e1ecb80f579740.tar.gz |
ChangeLog:
2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
* shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
* ira.c: #include "shrink-wrap.h"
(split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
* ifcvt.c: #include "shrink-wrap.h"
(dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
testsuite/ChangeLog:
2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
* gcc.target/arm/split-live-ranges-for-shrink-wrap.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215041 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/shrink-wrap.h')
-rw-r--r-- | gcc/shrink-wrap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/shrink-wrap.h b/gcc/shrink-wrap.h index 29bdcfd4ef2..7b8031aab5d 100644 --- a/gcc/shrink-wrap.h +++ b/gcc/shrink-wrap.h @@ -47,6 +47,9 @@ extern void convert_to_simple_return (edge entry_edge, edge orig_entry_edge, bitmap_head bb_flags, rtx_insn *returnjump, vec<edge> unconverted_simple_returns); +#define SHRINK_WRAPPING_ENABLED (flag_shrink_wrap && HAVE_simple_return) +#else +#define SHRINK_WRAPPING_ENABLED false #endif #endif /* GCC_SHRINK_WRAP_H */ |