]> git.ipfire.org Git - thirdparty/gcc.git/commit
forwprop: Change an if into an assert
authorAndrew Pinski <quic_apinski@quicinc.com>
Tue, 13 May 2025 20:04:32 +0000 (13:04 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Wed, 14 May 2025 14:56:22 +0000 (07:56 -0700)
commitd8d3cb676949ea3c2af5ff2d4f6c5582ce7cc9f8
treed44b4397674e00663055622515634f40038f807b
parent1759734f1584a3db75c5a931bc1b144b7695b80a
forwprop: Change an if into an assert

Since the merge of the tuples branch (r0-88576-g726a989a8b74bf), the
if:
```
  if (TREE_CODE_CLASS (gimple_cond_code (stmt)) != tcc_comparison)
```
Will always be false so let's change it into an assert.

gcc/ChangeLog:

* tree-ssa-forwprop.cc (forward_propagate_into_gimple_cond): Assert
that gimple_cond_code is always a comparison.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/tree-ssa-forwprop.cc