* tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
access path on BIT_FIELD_REFs.
From-SVN: r272380
+2019-06-17 Jan Hubicka <hubicka@ucw.cz>
+
+ * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
+ access path on BIT_FIELD_REFs.
+
2019-06-17 Martin Liska <mliska@suse.cz>
PR ipa/90874
if (TREE_CODE (type) == RECORD_TYPE)
fieldsx.safe_push (field);
}
- else if (TREE_CODE (x) == VIEW_CONVERT_EXPR)
+ else if (TREE_CODE (x) == VIEW_CONVERT_EXPR
+ || TREE_CODE (x) == BIT_FIELD_REF)
fieldsx.truncate (0);
x = TREE_OPERAND (x, 0);
}
if (TREE_CODE (type) == RECORD_TYPE)
fieldsy.safe_push (TREE_OPERAND (y, 1));
}
- else if (TREE_CODE (y) == VIEW_CONVERT_EXPR)
+ else if (TREE_CODE (y) == VIEW_CONVERT_EXPR
+ || TREE_CODE (y) == BIT_FIELD_REF)
fieldsy.truncate (0);
y = TREE_OPERAND (y, 0);
}