llvm.org GIT mirror llvm / 363d1c3
Use constants for all return values in switch. Allows clang to optimize it into a lookup table. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164926 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 8 years ago
1 changed file(s) with 8 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
242242 case X86::R15: case X86::R15D: case X86::R15W: case X86::R15B:
243243 return N86::EDI;
244244
245 case X86::ST0: case X86::ST1: case X86::ST2: case X86::ST3:
246 case X86::ST4: case X86::ST5: case X86::ST6: case X86::ST7:
247 return RegNo-X86::ST0;
245 case X86::ST0: return 0;
246 case X86::ST1: return 1;
247 case X86::ST2: return 2;
248 case X86::ST3: return 3;
249 case X86::ST4: return 4;
250 case X86::ST5: return 5;
251 case X86::ST6: return 6;
252 case X86::ST7: return 7;
248253
249254 case X86::XMM0: case X86::XMM8:
250255 case X86::YMM0: case X86::YMM8: case X86::MM0: