Not logged in
Log in now
Create an account
Subscribe to LWN
Deadline scheduling: coming soon?
LWN.net Weekly Edition for November 27, 2013
ACPI for ARM?
LWN.net Weekly Edition for November 21, 2013
GNU virtual private Ethernet
It is kind of amazing how many non-intuitive optimizations can be made on code like that.
For example, it might be rewritten to something like:
undo using a
or rewritten into two function blocks, one for if (foo) and one for if (!foo).
or the initialization of a might be moved down into the other if (foo) block.
So anyway, it is entirely possible that after GCC swizzles the code around it cannot tell anymore. It might have actually used a without even looking at foo, intending to undo it later.
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds