diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-02-20 11:24:05 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-02-20 11:24:05 +0000 |
commit | d28b57569de19511f63a010a209a08a4e24bfac3 (patch) | |
tree | 2d3f6caa724c6de1b19cd23a7c180b264c446bda /lib/Target/Alpha | |
parent | 7c1c261272b43f2a9397c3052819b92c53918075 (diff) | |
download | external_llvm-d28b57569de19511f63a010a209a08a4e24bfac3.zip external_llvm-d28b57569de19511f63a010a209a08a4e24bfac3.tar.gz external_llvm-d28b57569de19511f63a010a209a08a4e24bfac3.tar.bz2 |
Fix code style
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47370 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha')
-rw-r--r-- | lib/Target/Alpha/AlphaRegisterInfo.cpp | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/lib/Target/Alpha/AlphaRegisterInfo.cpp b/lib/Target/Alpha/AlphaRegisterInfo.cpp index 9a33d0b..3481414 100644 --- a/lib/Target/Alpha/AlphaRegisterInfo.cpp +++ b/lib/Target/Alpha/AlphaRegisterInfo.cpp @@ -282,8 +282,7 @@ void AlphaRegisterInfo::emitEpilogue(MachineFunction &MF, long NumBytes = MFI->getStackSize(); //now if we need to, restore the old FP - if (FP) - { + if (FP) { //copy the FP into the SP (discards allocas) BuildMI(MBB, MBBI, TII.get(Alpha::BISr), Alpha::R30).addReg(Alpha::R15) .addReg(Alpha::R15); @@ -291,21 +290,20 @@ void AlphaRegisterInfo::emitEpilogue(MachineFunction &MF, BuildMI(MBB, MBBI, TII.get(Alpha::LDQ), Alpha::R15).addImm(0).addReg(Alpha::R15); } - if (NumBytes != 0) - { - if (NumBytes <= IMM_HIGH) { - BuildMI(MBB, MBBI, TII.get(Alpha::LDA), Alpha::R30).addImm(NumBytes) - .addReg(Alpha::R30); - } else if (getUpper16(NumBytes) <= IMM_HIGH) { - BuildMI(MBB, MBBI, TII.get(Alpha::LDAH), Alpha::R30) - .addImm(getUpper16(NumBytes)).addReg(Alpha::R30); - BuildMI(MBB, MBBI, TII.get(Alpha::LDA), Alpha::R30) - .addImm(getLower16(NumBytes)).addReg(Alpha::R30); - } else { - cerr << "Too big a stack frame at " << NumBytes << "\n"; - abort(); - } - } + if (NumBytes != 0) { + if (NumBytes <= IMM_HIGH) { + BuildMI(MBB, MBBI, TII.get(Alpha::LDA), Alpha::R30).addImm(NumBytes) + .addReg(Alpha::R30); + } else if (getUpper16(NumBytes) <= IMM_HIGH) { + BuildMI(MBB, MBBI, TII.get(Alpha::LDAH), Alpha::R30) + .addImm(getUpper16(NumBytes)).addReg(Alpha::R30); + BuildMI(MBB, MBBI, TII.get(Alpha::LDA), Alpha::R30) + .addImm(getLower16(NumBytes)).addReg(Alpha::R30); + } else { + cerr << "Too big a stack frame at " << NumBytes << "\n"; + abort(); + } + } } unsigned AlphaRegisterInfo::getRARegister() const { |