diff options
author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2018-02-18 10:09:54 +0000 |
---|---|---|
committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2018-02-18 10:09:54 +0000 |
commit | 891789c29947a57f0882829100c6b91f680672c6 (patch) | |
tree | 1d39240bec68ea0984f149e41f5683ebbfb50ea3 /llvm/lib/Target/BPF | |
parent | 1040f236a3d9a0dd2db576c94fb93af6d0799940 (diff) | |
download | bcm5719-llvm-891789c29947a57f0882829100c6b91f680672c6.tar.gz bcm5719-llvm-891789c29947a57f0882829100c6b91f680672c6.zip |
[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
Diffstat (limited to 'llvm/lib/Target/BPF')
-rw-r--r-- | llvm/lib/Target/BPF/BPFRegisterInfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |