• mdempsky@chromium.org's avatar
    Simplify PointerCompare a little · c045994a
    mdempsky@chromium.org authored
    Technically makes a few behavioral changes, but these shouldn't have
    any real consequences:
    
    1. When comparing conditional branch statements, the 'false' jump
    target is now compared lexicographically before the 'true' jump target
    (to reduce redundancy with comparing unconditional branches).  This
    affects block ordering slightly, but equality (which is what we really
    care about) remains the same.
    
    2. Adds a bit more sanity checking: RET and JMP instructions should
    only occur at the end of basic blocks.
    
    Review URL: https://codereview.chromium.org/286063007
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271593 0039d316-1c4b-4281-b951-d872f2087c98
    c045994a
codegen.cc 29.8 KB