On 11/16/14 23:31, Zhouyi Zhou wrote:
From: Zhouyi Zhou <yizhouz...@ict.ac.cn>
In function build_conflict_bit_table, id is set in objects_live before
traversing that sparseset, so the obj is unnessary compared with itself
during the traversing.
The comparing of obj with itself can be avoided by means of moving
sparseset_set_bit (objects_live, id) after the traversing.
I have no write access to gcc repository and I can't provide a testcase
because the improvement has effective compile no output.
Bootstraped and regtested in x86_64 Linux
Signed-off-by: Zhouyi Zhou <yizhouz...@ict.ac.cn>
---
gcc/ChangeLog | 4 ++++
gcc/ira-conflicts.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d385e33..3f4b14e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2014-11-17 Zhouyi Zhou <yizhouz...@ict.ac.cn>
+
+ * ira-conflicts.c (build_conflict_bit_table): avoid obj self comparing.
Thanks installed.
jeff