2011-04-15 Martin Jambor <mjambor@suse.cz>
* ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
of ADR_EXPRs.
From-SVN: r172515
+2011-04-15 Martin Jambor <mjambor@suse.cz>
+
+ * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
+ of ADR_EXPRs.
+
2011-04-15 Martin Jambor <mjambor@suse.cz>
PR middle-end/48601
if (!flag_devirtualize)
return;
- if (TREE_CODE (obj) == ADDR_EXPR)
- {
- do
- {
- obj = TREE_OPERAND (obj, 0);
- }
- while (TREE_CODE (obj) == COMPONENT_REF);
- if (TREE_CODE (obj) != MEM_REF)
- return;
- obj = TREE_OPERAND (obj, 0);
- }
-
if (TREE_CODE (obj) != SSA_NAME
|| !SSA_NAME_IS_DEFAULT_DEF (obj))
return;