diff options
author | Renato Golin <renato.golin@linaro.org> | 2016-05-23 13:02:11 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2016-05-23 13:02:11 +0000 |
commit | 2546b5ac5f1a945326a99fcb02ee80ec987fe947 (patch) | |
tree | 887333e1eaf26ecfe315ac20aad53880a6879153 /llvm/lib | |
parent | 996fb611b3f28a7f504ae424f386eabdfa84af1d (diff) | |
download | bcm5719-llvm-2546b5ac5f1a945326a99fcb02ee80ec987fe947.tar.gz bcm5719-llvm-2546b5ac5f1a945326a99fcb02ee80ec987fe947.zip |
Reverts "[BPF] Remove exit-on-error flag in test (PR27766)"
This patch reverts r270419 because it broke a lot of buildbots,
mostly Windows. We'd like help in investigating the issues, but
for now, it should stay out.
llvm-svn: 270433
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/BPF/BPFISelLowering.cpp | 9 | ||||
-rw-r--r-- | llvm/lib/Target/BPF/BPFISelLowering.h | 3 |
2 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/Target/BPF/BPFISelLowering.cpp b/llvm/lib/Target/BPF/BPFISelLowering.cpp index d5ace85b8e5..066dc5e31e1 100644 --- a/llvm/lib/Target/BPF/BPFISelLowering.cpp +++ b/llvm/lib/Target/BPF/BPFISelLowering.cpp @@ -209,8 +209,6 @@ SDValue BPFTargetLowering::LowerFormalArguments( return Chain; } -const unsigned long BPFTargetLowering::MaxArgs = 5; - SDValue BPFTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI, SmallVectorImpl<SDValue> &InVals) const { SelectionDAG &DAG = CLI.DAG; @@ -243,8 +241,9 @@ SDValue BPFTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI, unsigned NumBytes = CCInfo.getNextStackOffset(); - if (Outs.size() > MaxArgs) + if (Outs.size() >= 6) { fail(CLI.DL, DAG, "too many args to ", Callee); + } for (auto &Arg : Outs) { ISD::ArgFlagsTy Flags = Arg.Flags; @@ -258,10 +257,10 @@ SDValue BPFTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI, Chain = DAG.getCALLSEQ_START( Chain, DAG.getConstant(NumBytes, CLI.DL, PtrVT, true), CLI.DL); - SmallVector<std::pair<unsigned, SDValue>, MaxArgs> RegsToPass; + SmallVector<std::pair<unsigned, SDValue>, 5> RegsToPass; // Walk arg assignments - for (unsigned i = 0, e = std::min(ArgLocs.size(), MaxArgs); i != e; ++i) { + for (unsigned i = 0, e = ArgLocs.size(); i != e; ++i) { CCValAssign &VA = ArgLocs[i]; SDValue Arg = OutVals[i]; diff --git a/llvm/lib/Target/BPF/BPFISelLowering.h b/llvm/lib/Target/BPF/BPFISelLowering.h index 8663b67a7f0..ec71dca2fae 100644 --- a/llvm/lib/Target/BPF/BPFISelLowering.h +++ b/llvm/lib/Target/BPF/BPFISelLowering.h @@ -58,9 +58,6 @@ private: SelectionDAG &DAG, SmallVectorImpl<SDValue> &InVals) const; - // Maximum number of arguments to a call - static const unsigned long MaxArgs; - // Lower a call into CALLSEQ_START - BPFISD:CALL - CALLSEQ_END chain SDValue LowerCall(TargetLowering::CallLoweringInfo &CLI, SmallVectorImpl<SDValue> &InVals) const override; |