This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix tree-opt/28624, ICE with eliminate_degenerate_phis and bitmaps


Hi,
   This is a latent bug in eliminate_degenerate_phis, where we use 
EXECUTE_IF_SET_IN_BITMAP
but we also change the bitmap at the same time and 
EXECUTE_IF_SET_IN_BITMAP does not
like it so we get an incorrect bit back that was set which could possibly 
already
been removed.

This patch fixes the problem by copying the bitmap into a temporary bitmap 
before
using EXECUTE_IF_SET_IN_BITMAP.

OK? Bootstrapped and tested on i686-linux-gnu with no regressions.
OK for 4.2 also?

Thanks,
Andrew Pinski

        * tree-ssa-dom.c (eliminate_degenerate_phis): Use a temporary 
bitmap
        for EXECUTE_IF_SET_IN_BITMAP.


Attachment: fixdom.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]