]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/83521 (ICE: verify_gimple failed (error: invalid operand...
authorJakub Jelinek <jakub@redhat.com>
Thu, 21 Dec 2017 19:26:34 +0000 (20:26 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 21 Dec 2017 19:26:34 +0000 (20:26 +0100)
commita4710e09ed089313e3d4189d00fcfc487262e05a
tree7eda300f6c4a50ae8f15d3f568032ab17bdd4068
parentda98f7424ee636d5254b5b90adbdb9f880818692
re PR tree-optimization/83521 (ICE: verify_gimple failed (error: invalid operand in unary operation))

PR tree-optimization/83521
* tree-ssa-phiopt.c (factor_out_conditional_conversion): Use
gimple_build_assign without code on result of
fold_build1 (VIEW_CONVERT_EXPR, ...), as it might not create
a VIEW_CONVERT_EXPR.

* gcc.dg/pr83521.c: New test.

From-SVN: r255952
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr83521.c [new file with mode: 0644]
gcc/tree-ssa-phiopt.c