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: [PATCH] Merging BB and user labels (tree level)



On Dec 29, 2004, at 3:59 PM, Jeffrey A Law wrote:


On Thu, 2004-12-16 at 23:46 -0500, Andrew Pinski wrote:
As much as I'd like to move forward with this patch, I think it is
broken.

Consider an unreferenced user label.

Then why at -O2 I get the labels moved to the beginning of the BB for the following testcase: int i, d = 10, e = 10; int main(void) { L: i++; L1: i+=d; L2: i*=e; }


Oh even in the rtl too: (note:HI 9 6 10 ("L") NOTE_INSN_DELETED_LABEL 2)

;; Start of basic block 0, registers live: 1 [r1] 31 [r31]
(note:HI 10 9 22 0 [bb 0] NOTE_INSN_BASIC_BLOCK)

(note:HI 22 10 35 0 ("L1") NOTE_INSN_DELETED_LABEL 3)

(note:HI 35 22 47 0 ("L2") NOTE_INSN_DELETED_LABEL 4)

Thanks,
Andrew Pinski


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