News for hackers. Stuff that matters.
Re:Testing GCC by correnos on Monday February 13, 2017 @04:22PM (#13638897)
Well, you could embed a machine-checked proof that instruction sequences of the targeted form will sometimes survive previous optimization passes and therefore the given optimization will always be contributing something.

But that's hard, so every compiler I've used leaves it to human engineering instead.

Re:Testing GCC by astrange on Monday February 13, 2017 @06:22PM (#13639812)
You can emit stats for time and # of instructions changed by each pass. gcc certainly does the first, don't remember the second.