From 891789c29947a57f0882829100c6b91f680672c6 Mon Sep 17 00:00:00 2001 From: Jonas Paulsson Date: Sun, 18 Feb 2018 10:09:54 +0000 Subject: [BPF] Return true in enableMultipleCopyHints(). Enable multiple COPY hints to eliminate more COPYs during register allocation. Note that this is something all targets should do, see https://reviews.llvm.org/D38128. Review: Yonghong Song llvm-svn: 325457 --- llvm/lib/Target/BPF/BPFRegisterInfo.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib') diff --git a/llvm/lib/Target/BPF/BPFRegisterInfo.h b/llvm/lib/Target/BPF/BPFRegisterInfo.h index 4202850e9eb..bb0d6bcf545 100644 --- a/llvm/lib/Target/BPF/BPFRegisterInfo.h +++ b/llvm/lib/Target/BPF/BPFRegisterInfo.h @@ -29,6 +29,8 @@ struct BPFRegisterInfo : public BPFGenRegisterInfo { BitVector getReservedRegs(const MachineFunction &MF) const override; + bool enableMultipleCopyHints() const override { return true; } + void eliminateFrameIndex(MachineBasicBlock::iterator MI, int SPAdj, unsigned FIOperandNum, RegScavenger *RS = nullptr) const override; -- cgit v1.2.3