Commit 2efd77e9 by Jan Hubicka Committed by Jan Hubicka

* fold-const.c (operand_equal_p): Drp flag_strict_aliasing check.

From-SVN: r231377
parent 0beb7c71
2015-12-07 Jan Hubicka <hubicka@ucw.cz>
* fold-const.c (operand_equal_p): Drp flag_strict_aliasing check.
2015-12-07 Nathan Sidwell <nathan@acm.org> 2015-12-07 Nathan Sidwell <nathan@acm.org>
* config//nvptx/nvptx.c (write_return): New. * config//nvptx/nvptx.c (write_return): New.
...@@ -2987,14 +2987,13 @@ operand_equal_p (const_tree arg0, const_tree arg1, unsigned int flags) ...@@ -2987,14 +2987,13 @@ operand_equal_p (const_tree arg0, const_tree arg1, unsigned int flags)
flags))) flags)))
return 0; return 0;
/* Verify that accesses are TBAA compatible. */ /* Verify that accesses are TBAA compatible. */
if (flag_strict_aliasing if (!alias_ptr_types_compatible_p
&& (!alias_ptr_types_compatible_p (TREE_TYPE (TREE_OPERAND (arg0, 1)),
(TREE_TYPE (TREE_OPERAND (arg0, 1)), TREE_TYPE (TREE_OPERAND (arg1, 1)))
TREE_TYPE (TREE_OPERAND (arg1, 1))) || (MR_DEPENDENCE_CLIQUE (arg0)
|| (MR_DEPENDENCE_CLIQUE (arg0) != MR_DEPENDENCE_CLIQUE (arg1))
!= MR_DEPENDENCE_CLIQUE (arg1)) || (MR_DEPENDENCE_BASE (arg0)
|| (MR_DEPENDENCE_BASE (arg0) != MR_DEPENDENCE_BASE (arg1)))
!= MR_DEPENDENCE_BASE (arg1))))
return 0; return 0;
/* Verify that alignment is compatible. */ /* Verify that alignment is compatible. */
if (TYPE_ALIGN (TREE_TYPE (arg0)) if (TYPE_ALIGN (TREE_TYPE (arg0))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment