diff options
| author | Alex Bradbury <asb@lowrisc.org> | 2019-02-21 14:31:41 +0000 |
|---|---|---|
| committer | Alex Bradbury <asb@lowrisc.org> | 2019-02-21 14:31:41 +0000 |
| commit | db67be889d5e510faa3f4e9d48aa20fe7382084c (patch) | |
| tree | 66acae863340cbe7fd39e6f9d0594efce09b2f4a | |
| parent | 047170cfc3d635b32d4aacce25cc007c4a706337 (diff) | |
| download | bcm5719-llvm-db67be889d5e510faa3f4e9d48aa20fe7382084c.tar.gz bcm5719-llvm-db67be889d5e510faa3f4e9d48aa20fe7382084c.zip | |
[RISCV][NFC] IsEligibleForTailCallOptimization -> isEligibleForTailCallOptimization
Also clang-format the modified hunks.
llvm-svn: 354584
| -rw-r--r-- | llvm/lib/Target/RISCV/RISCVISelLowering.cpp | 11 | ||||
| -rw-r--r-- | llvm/lib/Target/RISCV/RISCVISelLowering.h | 6 |
2 files changed, 8 insertions, 9 deletions
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp index 5f9d5ef609e..f46a21a9bff 100644 --- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp +++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp @@ -1367,12 +1367,12 @@ SDValue RISCVTargetLowering::LowerFormalArguments( return Chain; } -/// IsEligibleForTailCallOptimization - Check whether the call is eligible +/// isEligibleForTailCallOptimization - Check whether the call is eligible /// for tail call optimization. /// Note: This is modelled after ARM's IsEligibleForTailCallOptimization. -bool RISCVTargetLowering::IsEligibleForTailCallOptimization( - CCState &CCInfo, CallLoweringInfo &CLI, MachineFunction &MF, - const SmallVector<CCValAssign, 16> &ArgLocs) const { +bool RISCVTargetLowering::isEligibleForTailCallOptimization( + CCState &CCInfo, CallLoweringInfo &CLI, MachineFunction &MF, + const SmallVector<CCValAssign, 16> &ArgLocs) const { auto &Callee = CLI.Callee; auto CalleeCC = CLI.CallConv; @@ -1475,8 +1475,7 @@ SDValue RISCVTargetLowering::LowerCall(CallLoweringInfo &CLI, // Check if it's really possible to do a tail call. if (IsTailCall) - IsTailCall = IsEligibleForTailCallOptimization(ArgCCInfo, CLI, MF, - ArgLocs); + IsTailCall = isEligibleForTailCallOptimization(ArgCCInfo, CLI, MF, ArgLocs); if (IsTailCall) ++NumTailCalls; diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.h b/llvm/lib/Target/RISCV/RISCVISelLowering.h index 12b63208543..4c9fd26e5cf 100644 --- a/llvm/lib/Target/RISCV/RISCVISelLowering.h +++ b/llvm/lib/Target/RISCV/RISCVISelLowering.h @@ -141,9 +141,9 @@ private: SDValue lowerFRAMEADDR(SDValue Op, SelectionDAG &DAG) const; SDValue lowerRETURNADDR(SDValue Op, SelectionDAG &DAG) const; - bool IsEligibleForTailCallOptimization(CCState &CCInfo, - CallLoweringInfo &CLI, MachineFunction &MF, - const SmallVector<CCValAssign, 16> &ArgLocs) const; + bool isEligibleForTailCallOptimization( + CCState &CCInfo, CallLoweringInfo &CLI, MachineFunction &MF, + const SmallVector<CCValAssign, 16> &ArgLocs) const; TargetLowering::AtomicExpansionKind shouldExpandAtomicRMWInIR(AtomicRMWInst *AI) const override; |

