https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66812
Eric Gallager changed:
What|Removed |Added
Keywords||patch
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66812
--- Comment #3 from David Malcolm dmalcolm at gcc dot gnu.org ---
(In reply to David Malcolm from comment #2)
Output from fre1 dump (at e.g. optlevel 3) (with TDF_DETAILS enabled) is:
(snip)
Removing dead stmt MEM[(struct value *)arr_2(D) +
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66812
--- Comment #1 from David Malcolm dmalcolm at gcc dot gnu.org ---
Created attachment 35945
-- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35945action=edit
Minimal reproducer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66812
--- Comment #2 from David Malcolm dmalcolm at gcc dot gnu.org ---
Output from fre1 dump (at e.g. optlevel 3) (with TDF_DETAILS enabled) is:
;; Function test_pr66812 (test_pr66812, funcdef_no=0, decl_uid=56,
cgraph_uid=0, symbol_order=0)
Setting
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66812
--- Comment #4 from David Malcolm dmalcolm at gcc dot gnu.org ---
Created attachment 35946
-- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35946action=edit
Equivalent C code
(generated using gcc_jit_context_dump_to_file and lightly editing
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66812
Andrew Pinski pinskia at gcc dot gnu.org changed:
What|Removed |Added
Keywords||alias,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66812
--- Comment #9 from David Malcolm dmalcolm at gcc dot gnu.org ---
Notes to self:
For the given stmt, fre1's call to:
val = vn_reference_lookup (gimple_assign_lhs (stmt),
gimple_vuse (stmt), VN_WALK,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66812
David Malcolm dmalcolm at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66812
--- Comment #8 from David Malcolm dmalcolm at gcc dot gnu.org ---
Root cause found: it's because of the langhook:
LANG_HOOKS_GET_ALIAS_SET
which it looks like I need to implement for libgccjit.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66812
--- Comment #5 from David Malcolm dmalcolm at gcc dot gnu.org ---
(In reply to David Malcolm from comment #4)
Created attachment 35946 [details]
Equivalent C code
(generated using gcc_jit_context_dump_to_file and lightly editing until
valid
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66812
--- Comment #10 from David Malcolm dmalcolm at gcc dot gnu.org ---
Candidate patch posted as:
https://gcc.gnu.org/ml/jit/2015-q3/msg00060.html
11 matches
Mail list logo