diff options
author | Ben Cheng <bccheng@google.com> | 2013-08-05 15:18:29 -0700 |
---|---|---|
committer | Ben Cheng <bccheng@google.com> | 2013-08-05 16:03:48 -0700 |
commit | 32fce3edda831e36ee484406c39dffbe0230f257 (patch) | |
tree | 733b1b5398304b260a4ee3d5d9b17da5038c5486 /gcc-4.8/gcc/emit-rtl.c | |
parent | e85b9ca2afe8edbb9fa99c6ce2cc4e52dce18c21 (diff) | |
download | toolchain_gcc-32fce3edda831e36ee484406c39dffbe0230f257.tar.gz toolchain_gcc-32fce3edda831e36ee484406c39dffbe0230f257.tar.bz2 toolchain_gcc-32fce3edda831e36ee484406c39dffbe0230f257.zip |
[4.8] Merge GCC 4.8.1
Change-Id: Ic8a60b7563f5172440fd40788605163a0cca6e30
Diffstat (limited to 'gcc-4.8/gcc/emit-rtl.c')
-rw-r--r-- | gcc-4.8/gcc/emit-rtl.c | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/gcc-4.8/gcc/emit-rtl.c b/gcc-4.8/gcc/emit-rtl.c index 59cd38d40..b5278bf43 100644 --- a/gcc-4.8/gcc/emit-rtl.c +++ b/gcc-4.8/gcc/emit-rtl.c @@ -2660,16 +2660,13 @@ verify_rtx_sharing (rtx orig, rtx insn) return; } -/* Go through all the RTL insn bodies and check that there is no unexpected - sharing in between the subexpressions. */ +/* Go through all the RTL insn bodies and clear all the USED bits. */ -DEBUG_FUNCTION void -verify_rtl_sharing (void) +static void +reset_all_used_flags (void) { rtx p; - timevar_push (TV_VERIFY_RTL_SHARING); - for (p = get_insns (); p; p = NEXT_INSN (p)) if (INSN_P (p)) { @@ -2693,6 +2690,19 @@ verify_rtl_sharing (void) } } } +} + +/* Go through all the RTL insn bodies and check that there is no unexpected + sharing in between the subexpressions. */ + +DEBUG_FUNCTION void +verify_rtl_sharing (void) +{ + rtx p; + + timevar_push (TV_VERIFY_RTL_SHARING); + + reset_all_used_flags (); for (p = get_insns (); p; p = NEXT_INSN (p)) if (INSN_P (p)) @@ -2703,6 +2713,8 @@ verify_rtl_sharing (void) verify_rtx_sharing (CALL_INSN_FUNCTION_USAGE (p), p); } + reset_all_used_flags (); + timevar_pop (TV_VERIFY_RTL_SHARING); } |