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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
If we mark sga_var as weak then there is no ifcvt.


extern int sga_mapped;
extern int sga_var __attribute__((weak));
int func(int j){
        int i=0;
        if(sga_mapped)
                i=i+sga_var;
        return i;
}

Reply via email to