Compare disassembly:
if (cmdline == NULL)
cmp dword ptr [ebp-138h],0
jne ........
To:
if (NULL == cmdline)
cmp dword ptr [ebp-138h],0
jne ........
No difference whatsoever.
The sole reason for "if (const == variable)" order is to catch accidental mistypes of "=" for "==", but your compiler, with the appropriate warning level set (you do have the appropriate warning level set? Good, just checking) will catch those anyway.
Worse, aside from being as unreadable as the Voynich Manuscript, it can lead the programmer into a false sense of safety. Witness:
int a = GetMeAnInteger ();
int b = GetMeAnotherInteger ();
if (a = b)
Ha! Gotcha!
So - not any faster, false sense of safety, makes your fellow programmers want to gouge their eyes out.
Or on the other hand you could just ramp up your warning level and catch them all anyway.