Two changes:
authorChris Lattner <sabre@nondot.org>
Tue, 6 Apr 2004 01:21:00 +0000 (01:21 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 6 Apr 2004 01:21:00 +0000 (01:21 +0000)
commit29bf0623e57d36b982955a2cc7bf48d856c26d84
tree37e2a08c809bde2e3632c35a33814c0780449237
parenta57d86b436549503a7f96c5266444e022bdbaf55
Two changes:
  * In promote32, if we can just promote a constant value, do so instead of
    promoting a constant dynamically.
  * In visitReturn inst, actually USE the promote32 argument that takes a
    Value*

The end result of this is that we now generate this:

test:
        mov %EAX, 0
        ret

instead of...

test:
        mov %AX, 0
        movzx %EAX, %AX
        ret

for:

ushort %test() {
        ret ushort 0
}

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12679 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/InstSelectSimple.cpp
lib/Target/X86/X86ISelSimple.cpp