diff options
author | Jeff Law <jeffreyalaw@gmail.com> | 2022-09-30 20:46:04 -0400 |
---|---|---|
committer | Jeff Law <jeffreyalaw@gmail.com> | 2022-09-30 20:48:30 -0400 |
commit | aa360fbf68b11e54017e8fa5b1bdb87ce7c19188 (patch) | |
tree | 50e170d8ba25169a95f27b38b19d806700dd0e13 /gcc | |
parent | c3cb74aee204a41f7049617d453f2c20c2b1febe (diff) | |
download | gcc-aa360fbf68b11e54017e8fa5b1bdb87ce7c19188.zip gcc-aa360fbf68b11e54017e8fa5b1bdb87ce7c19188.tar.gz gcc-aa360fbf68b11e54017e8fa5b1bdb87ce7c19188.tar.bz2 |
Install correct patch version.
gcc/
* tree-ssa-dom.cc (record_edge_info): Install correct version of
patch.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/tree-ssa-dom.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/tree-ssa-dom.cc b/gcc/tree-ssa-dom.cc index 8d8312c..e6b8dac 100644 --- a/gcc/tree-ssa-dom.cc +++ b/gcc/tree-ssa-dom.cc @@ -684,11 +684,6 @@ record_edge_info (basic_block bb) !gsi_end_p (gsi); gsi_next (&gsi)) { - /* If the other alternative is the same as the result, - then this is a degenerate and can be ignored. */ - if (dst == PHI_ARG_DEF (phi, !alternative)) - continue; - /* Now get the EDGE_INFO class so we can append it to our list. We want the successor edge where the destination is not the source of @@ -697,6 +692,11 @@ record_edge_info (basic_block bb) tree src = PHI_ARG_DEF (phi, alternative); tree dst = PHI_RESULT (phi); + /* If the other alternative is the same as the result, + then this is a degenerate and can be ignored. */ + if (dst == PHI_ARG_DEF (phi, !alternative)) + continue; + if (EDGE_SUCC (bb, 0)->dest != EDGE_PRED (bb, !alternative)->src) edge_info = (class edge_info *)EDGE_SUCC (bb, 0)->aux; |