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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2021-11-17
            Summary|[12 Regression] ICE in      |[12 Regression] ICE in
                   |branch_prob, at             |branch_prob with -O1
                   |profile.c:1208              |-fbranch-probabilities
                   |                            |-fno-ipa-pure-const
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed. DSE is able to remove the function as it does not have any side
effects even though it has returns twice but
  <bb 4> :
  .ABNORMAL_DISPATCHER (0);

is still there.

-fno-ipa-pure-const is required because it will cause an override of the
returns_twice attribute.

Reply via email to