https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121787

Robin Dapp <rdapp at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rdapp at gcc dot gnu.org

--- Comment #2 from Robin Dapp <rdapp at gcc dot gnu.org> ---
Happens in vsetvl but during the initialization phase when we call
loop_optimizer_init which does checking_verify_loop_structure.  Maybe the loop
structure has been broken for several passes already and we only notice in
vsetvl?

;; basic block 3, loop depth 1, count 1073741824 (estimated locally, freq
9.0909), maybe hot
;;  prev block 6, next block 4, flags: (REACHABLE, RTL, MODIFIED)
;;  pred:       6 [always]  count:955630224 (estimated locally, freq 8.0909)
(FALLTHRU,DFS_BACK)
;;              2 [50.0% (adjusted)]  count:59055800 (estimated locally, freq
0.5000)
;;              5 [always]  count:59055800 (estimated locally, freq 0.5000)

The loop is being changed by apply_loop_flags before verifying it.

changing bb of uid 44
  unscanned insn
scanning new insn with uid = 45.
changing bb of uid 47
  unscanned insn
Edge 3->3 redirected to 6
;; 2 loops found
;;
;; Loop 0
;;  header 0, latch 1
;;  depth 0, outer -1
;;  nodes: 0 1 2 5 6 3 4
;;
;; Loop 1
;;  header 3, latch 6
;;  depth 1, outer 0

Not looking further for now.

Reply via email to