diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2024-07-09 14:00:34 -0700 |
---|---|---|
committer | Andrew Pinski <quic_apinski@quicinc.com> | 2024-07-09 22:21:41 -0700 |
commit | 8f8bddb58ad7746b2a19c43e32641d161fa15caf (patch) | |
tree | 65ef3873a3e97a3a59ae7edac37b1e5360a254a2 | |
parent | 7a345d0314f8cf0f15ca3664b1e4430d65764570 (diff) | |
download | gcc-8f8bddb58ad7746b2a19c43e32641d161fa15caf.zip gcc-8f8bddb58ad7746b2a19c43e32641d161fa15caf.tar.gz gcc-8f8bddb58ad7746b2a19c43e32641d161fa15caf.tar.bz2 |
Remove expanding complex EQ/NE inside a GIMPLE_RETURN [PR115721]
This code has been dead at least since the move over to tuples
in 0-88576-g726a989a8b74bf, when gimple returns could only have
a simple expression in it. So let's remove it.
Bootstrapped and tested on x86_64-linux-gnu with no regressions.
gcc/ChangeLog:
PR tree-optimization/115721
* tree-complex.cc (expand_complex_comparison): Remove
support for GIMPLE_RETURN.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
-rw-r--r-- | gcc/tree-complex.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/tree-complex.cc b/gcc/tree-complex.cc index d2d9d76..dfb45b9 100644 --- a/gcc/tree-complex.cc +++ b/gcc/tree-complex.cc @@ -1622,14 +1622,6 @@ expand_complex_comparison (gimple_stmt_iterator *gsi, tree ar, tree ai, switch (gimple_code (stmt)) { - case GIMPLE_RETURN: - { - greturn *return_stmt = as_a <greturn *> (stmt); - type = TREE_TYPE (gimple_return_retval (return_stmt)); - gimple_return_set_retval (return_stmt, fold_convert (type, cc)); - } - break; - case GIMPLE_ASSIGN: type = TREE_TYPE (gimple_assign_lhs (stmt)); gimple_assign_set_rhs_from_tree (gsi, fold_convert (type, cc)); |