https://gcc.gnu.org/g:eafdce175a4e22bebf42e37a94d528eb52f92f16

commit r15-7270-geafdce175a4e22bebf42e37a94d528eb52f92f16
Author: Andrew Pinski <quic_apin...@quicinc.com>
Date:   Tue Jan 28 12:20:25 2025 -0800

    split-path: CALL_EXPR can't show up in gimple_assign
    
    While working on split path, I noticed that poor_ifcvt_candidate_code
    would check for CALL_EXPR but that can't show up in gimple_assign
    so this removes that check.
    
    This could be a very very small compile time improvement.
    
    Bootstrapped and tested on x86_64-linux-gnu.
    
    gcc/ChangeLog:
    
            * gimple-ssa-split-paths.cc (poor_ifcvt_candidate_code): Remove 
CALL_EXPR handling.
    
    Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>

Diff:
---
 gcc/gimple-ssa-split-paths.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/gimple-ssa-split-paths.cc b/gcc/gimple-ssa-split-paths.cc
index 018e59f98cb7..7c5bc1d842c0 100644
--- a/gcc/gimple-ssa-split-paths.cc
+++ b/gcc/gimple-ssa-split-paths.cc
@@ -138,8 +138,7 @@ poor_ifcvt_candidate_code (enum tree_code code)
   return (code == MIN_EXPR
          || code == MAX_EXPR
          || code == ABS_EXPR
-         || code == COND_EXPR
-         || code == CALL_EXPR);
+         || code == COND_EXPR);
 }
 
 /* Return TRUE if PRED of BB is an poor ifcvt candidate. */

Reply via email to