diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-16 14:05:49 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-16 14:05:49 +0000 |
| commit | 19141f27110f76a1522f35b1433d8cb28521fca5 (patch) | |
| tree | 338b6a21812a11d37d563556395a1dc7a85fbc5d /llvm/lib | |
| parent | b2d0c02451f458d51e9fda66701c68fa2f77ea11 (diff) | |
| download | bcm5719-llvm-19141f27110f76a1522f35b1433d8cb28521fca5.tar.gz bcm5719-llvm-19141f27110f76a1522f35b1433d8cb28521fca5.zip | |
Don't repeat names in comments and clang-format this function.
llvm-svn: 232375
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86FastISel.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index 45ebea0e1f2..a8260c2161f 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/lib/Target/X86/X86FastISel.cpp @@ -1094,16 +1094,19 @@ static unsigned X86ChooseCmpOpcode(EVT VT, const X86Subtarget *Subtarget) { } } -/// X86ChooseCmpImmediateOpcode - If we have a comparison with RHS as the RHS -/// of the comparison, return an opcode that works for the compare (e.g. -/// CMP32ri) otherwise return 0. +/// If we have a comparison with RHS as the RHS of the comparison, return an +/// opcode that works for the compare (e.g. CMP32ri) otherwise return 0. static unsigned X86ChooseCmpImmediateOpcode(EVT VT, const ConstantInt *RHSC) { switch (VT.getSimpleVT().SimpleTy) { // Otherwise, we can't fold the immediate into this comparison. - default: return 0; - case MVT::i8: return X86::CMP8ri; - case MVT::i16: return X86::CMP16ri; - case MVT::i32: return X86::CMP32ri; + default: + return 0; + case MVT::i8: + return X86::CMP8ri; + case MVT::i16: + return X86::CMP16ri; + case MVT::i32: + return X86::CMP32ri; case MVT::i64: // 64-bit comparisons are only valid if the immediate fits in a 32-bit sext // field. |

