projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ecad8a
)
reduce the number of created Confirms
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 2 Oct 2008 13:55:27 +0000
(13:55 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 2 Oct 2008 13:55:27 +0000
(13:55 +0000)
[r22414]
ir/ana/irconsconfirm.c
patch
|
blob
|
history
diff --git
a/ir/ana/irconsconfirm.c
b/ir/ana/irconsconfirm.c
index
6052467
..
fa8d7ed
100644
(file)
--- a/
ir/ana/irconsconfirm.c
+++ b/
ir/ana/irconsconfirm.c
@@
-474,6
+474,13
@@
static void insert_non_null(ir_node *ptr, ir_node *block, env_t *env) {
* Checks if a node is a non-null Confirm.
*/
static int is_non_null_Confirm(const ir_node *ptr) {
+ /*
+ * While a SymConst is not a Confirm, it is non-null
+ * anyway. This helps to reduce the number of
+ * constructed Confirms.
+ */
+ if (is_SymConst_addr_ent(ptr))
+ return 0;
for (;;) {
if (! is_Confirm(ptr))
return 0;