mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-26 17:00:58 +08:00
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.
This commit is contained in:
parent
263ee1260b
commit
7a2090b04e
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user