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]

Re: C identifier lookup speedups, 2/2


	Just to clarify the remaining problem, earlier versions of GCC
accessed the globally variable "v".  GCC with your patch and without
optimization patch stuffs "4" into a frame slot and compares against that:

        li 0,4
        stw 0,56(31)
        lwz 0,60(31)
        cmpwi 7,0,3

With optimization, the store is optimized away and GCC compares
against garbage in the GPR which would have held the value:

        cmpwi 7,0,3

David


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