summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonFrameLowering.h
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-08-01 17:15:30 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-08-01 17:15:30 +0000
commitddafa2cd5fcc841bf6bf2a85e943a411592375bc (patch)
tree1a6a85031ac0cddfeea3ac31beecd36cdf334356 /llvm/lib/Target/Hexagon/HexagonFrameLowering.h
parent08c47b37d35c071890a04aae6870711a3831511d (diff)
downloadbcm5719-llvm-ddafa2cd5fcc841bf6bf2a85e943a411592375bc.tar.gz
bcm5719-llvm-ddafa2cd5fcc841bf6bf2a85e943a411592375bc.zip
[Hexagon] Check for offset overflow when reserving scavenging slots
Scavenging slots were only reserved when pseudo-instruction expansion in frame lowering created new virtual registers. It is possible to still need a scavenging slot even if no virtual registers were created, in cases where the stack is large enough to overflow instruction offsets. llvm-svn: 277355
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonFrameLowering.h')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonFrameLowering.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonFrameLowering.h b/llvm/lib/Target/Hexagon/HexagonFrameLowering.h
index b4a39072b72..79e2cf12774 100644
--- a/llvm/lib/Target/Hexagon/HexagonFrameLowering.h
+++ b/llvm/lib/Target/Hexagon/HexagonFrameLowering.h
@@ -141,9 +141,10 @@ private:
void addCalleeSaveRegistersAsImpOperand(MachineInstr *MI, const CSIVect &CSI,
bool IsDef, bool IsKill) const;
- bool shouldInlineCSR(llvm::MachineFunction &MF, const CSIVect &CSI) const;
+ bool shouldInlineCSR(MachineFunction &MF, const CSIVect &CSI) const;
bool useSpillFunction(MachineFunction &MF, const CSIVect &CSI) const;
bool useRestoreFunction(MachineFunction &MF, const CSIVect &CSI) const;
+ bool mayOverflowFrameOffset(MachineFunction &MF) const;
};
} // End llvm namespace
OpenPOWER on IntegriCloud