[Bug tree-optimization/79244] [7 Regression] ice in replace_uses_by, at tree-cfg.c:1866

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 26 20:17:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79244

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So here we have (ab) SSA_NAME as lhs and we try to replace it with non-(ab)
SSA_NAME, which isn't supported except for virtual operands.
So, one possibility I see is if lhs is (ab) and var is SSA_NAME that isn't
(ab), if both have the same underlying variable, we turn var into (ab), but not
sure if it can be always safely done.  Or just don't run replace_uses_by and
just replace the ASSERT_EXPR with SSA_NAME assignment and let other passes
optimize it.


More information about the Gcc-bugs mailing list