Skip to content
Commit cecf3f94 authored by Chris Lattner's avatar Chris Lattner
Browse files

Make comparisons against the null pointer as efficient as integer comparisons

against zero.  In particular, don't emit:

        mov %ESI, 0
        cmp %ECX, %ESI

instead, emit:

       test %ECX, %ECX

llvm-svn: 13407
parent cf5822a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment