summaryrefslogtreecommitdiff
path: root/gcc/ipa-devirt.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-06 10:33:48 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-06 10:33:48 +0000
commit2104227173367ac6c94d301751caee441e43dce6 (patch)
tree7224f25a0612cc9a66c043d96249974250490ae7 /gcc/ipa-devirt.c
parente9de52cc3cd2a99d4962779add31ebc9243a98ad (diff)
downloadgcc-2104227173367ac6c94d301751caee441e43dce6.tar.gz
PR tree-optimization/58311
* ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202317 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-devirt.c')
-rw-r--r--gcc/ipa-devirt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
index 537fbda7682..2a50284c9b6 100644
--- a/gcc/ipa-devirt.c
+++ b/gcc/ipa-devirt.c
@@ -1114,9 +1114,7 @@ ipa_devirt (void)
static bool
gate_ipa_devirt (void)
{
- /* FIXME: We should remove the optimize check after we ensure we never run
- IPA passes when not optimizing. */
- return flag_devirtualize && !in_lto_p;
+ return flag_devirtualize && !in_lto_p && optimize;
}
namespace {