This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/32901] [4.1/4.2/4.3 regression] bitfield constants with multiple bitfields take up space in .data



------- Comment #7 from jakub at gcc dot gnu dot org  2007-12-04 19:58 -------
The problem is that we really don't have any optimization which would before
expand merge all the sets to adjacent bitfield fields into one (or few)
BITFIELD_REFs.  If we are lucky and the RTL passes merge it together,
initializing small structs containing bitfields this way will be a win, but
it might be an pessimization as well.
BTW, shouldn't TER try to merge several consecutive initializations of fields
of one aggregate into a CONSTRUCTOR again, so that RTL expanders can do better
job on it?  This wouldn't be the only bug which could be helped by that.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32901


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