summaryrefslogtreecommitdiff
path: root/gcc/bt-load.c
diff options
context:
space:
mode:
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-14 22:51:12 +0000
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-14 22:51:12 +0000
commitbc26d49579c73f2ab70166ac1dd2fe7a82217b62 (patch)
tree658bfbdad5740bc4b2a0ef681c893f067240bb75 /gcc/bt-load.c
parent2f9d63f9787c01b298762a28500c4442d7b19d44 (diff)
downloadgcc-bc26d49579c73f2ab70166ac1dd2fe7a82217b62.tar.gz
PR rtl-optimization/27406
* bt-load.c (migrate_btr_def): Skip the block having abnormal edges. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113766 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bt-load.c')
-rw-r--r--gcc/bt-load.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/bt-load.c b/gcc/bt-load.c
index 70975e4318d..88a680627ad 100644
--- a/gcc/bt-load.c
+++ b/gcc/bt-load.c
@@ -1339,6 +1339,15 @@ migrate_btr_def (btr_def def, int min_cost)
/* Try to move the instruction that sets the target register into
basic block TRY. */
int try_freq = basic_block_freq (try);
+ edge_iterator ei;
+ edge e;
+
+ /* If TRY has abnormal edges, skip it. */
+ FOR_EACH_EDGE (e, ei, try->succs)
+ if (e->flags & EDGE_COMPLEX)
+ break;
+ if (e)
+ continue;
if (dump_file)
fprintf (dump_file, "trying block %d ...", try->index);