commit | 722070e0bad559b622ef50eb52216d05042a3904 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Apr 06 03:42:38 2004 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Apr 06 03:42:38 2004 +0000 |
tree | e0888ea8304a6b753bfe173eb4651064ddc2d57d | |
parent | 0652167bea9d00ac855ddf93883365f8f651f2f8 [diff] |
Improve code generation of long shifts by 32. On this testcase: long %test(long %X) { %Y = shr long %X, ubyte 32 ret long %Y } instead of: t: mov %EAX, DWORD PTR [%ESP + 4] mov %EAX, DWORD PTR [%ESP + 8] sar %EAX, 0 mov %EDX, 0 ret we now emit: test: mov %EAX, DWORD PTR [%ESP + 4] mov %EAX, DWORD PTR [%ESP + 8] mov %EDX, 0 ret git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12688 91177308-0d34-0410-b5e6-96231b3b80d8