public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/ieee)] ipa/94245 - avoid folding when we want an ADDR_EXPR
@ 2020-04-16 22:34 Michael Meissner
0 siblings, 0 replies; only message in thread
From: Michael Meissner @ 2020-04-16 22:34 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:7a2090b04e54ffccc64ad2dfd5b46eb4bb8ce482
commit 7a2090b04e54ffccc64ad2dfd5b46eb4bb8ce482
Author: Richard Biener <rguenther@suse.de>
Date: Mon Mar 23 09:33:25 2020 +0100
ipa/94245 - avoid folding when we want an ADDR_EXPR
Another case where build_fold_addr_expr is harmful.
2020-03-23 Richard Biener <rguenther@suse.de>
PR ipa/94245
* ipa-prop.c (ipa_read_jump_function): Build the ADDR_EXRP
directly rather than also folding it via build_fold_addr_expr.
Diff:
---
gcc/ChangeLog | 6 ++++++
gcc/ipa-prop.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5df915d7800..c33327e61b2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2020-03-23 Richard Biener <rguenther@suse.de>
+
+ PR ipa/94245
+ * ipa-prop.c (ipa_read_jump_function): Build the ADDR_EXRP
+ directly rather than also folding it via build_fold_addr_expr.
+
2020-03-23 Richard Biener <rguenther@suse.de>
PR tree-optimization/94266
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index a77130ded39..71ac0e104d2 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -4625,7 +4625,7 @@ ipa_read_jump_function (class lto_input_block *ib,
{
tree t = stream_read_tree (ib, data_in);
if (flag && prevails)
- t = build_fold_addr_expr (t);
+ t = build1 (ADDR_EXPR, build_pointer_type (TREE_TYPE (t)), t);
ipa_set_jf_constant (jump_func, t, cs);
}
break;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-16 22:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-16 22:34 [gcc(refs/users/meissner/heads/ieee)] ipa/94245 - avoid folding when we want an ADDR_EXPR Michael Meissner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).