commit | 29bf0623e57d36b982955a2cc7bf48d856c26d84 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Apr 06 01:21:00 2004 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Apr 06 01:21:00 2004 +0000 |
tree | 37e2a08c809bde2e3632c35a33814c0780449237 | |
parent | a57d86b436549503a7f96c5266444e022bdbaf55 [diff] |
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