[llvm-commits] [llvm] r164926 - /llvm/trunk/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Tue Oct 2 09:10:31 PDT 2012
On Oct 1, 2012, at 12:33 AM, Craig Topper <craig.topper at gmail.com> wrote:
> Author: ctopper
> Date: Mon Oct 1 02:33:27 2012
> New Revision: 164926
>
> URL: http://llvm.org/viewvc/llvm-project?rev=164926&view=rev
> Log:
> Use constants for all return values in switch. Allows clang to optimize it into a lookup table.
>
> Modified:
> llvm/trunk/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
How about using MCRegisterInfo::getEncodingValue()?
/jakob
More information about the llvm-commits
mailing list