https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104377
Bug ID: 104377
Summary: Unreachable code in create_specialized_node of
ipa-prop.c?
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ipa
Assignee: unassigned at gcc dot gnu.org
Reporter: fxue at os dot amperecomputing.com
CC: marxin at gcc dot gnu.org
Target Milestone: ---
For function create_specialized_node(), the "node" to operated on seems always
to be an original cgraph node, never a clone node. From call graph related to
the function, we know that ipcp_decision_stage () only passes raw cgraph node
downwards to its callees. Then, "node" reaching create_specialized_node() would
not be a clone, so the code enclosed by "if (old_adjustments)" might be of no
use. But I am not sure sure if there is some thing that I missed.
ipcp_driver
|
'--> ipcp_decision_stage
|
'--> decide_whether_version_node
|
|--> decide_about_value
| |
'-----'--> create_specialized_node