mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
ARM: decide whether to use movw/movt based on "minsize" attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196102 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -64,6 +64,10 @@ protected:
|
||||
bool HasFPARMv8;
|
||||
bool HasNEON;
|
||||
|
||||
/// MinSize - True if the function being compiled has the "minsize" attribute
|
||||
/// and should be optimised for size at the expense of speed.
|
||||
bool MinSize;
|
||||
|
||||
/// UseNEONForSinglePrecisionFP - if the NEONFP attribute has been
|
||||
/// specified. Use the method useNEONForSinglePrecisionFP() to
|
||||
/// determine if NEON should actually be used.
|
||||
@@ -270,6 +274,7 @@ public:
|
||||
bool hasCrypto() const { return HasCrypto; }
|
||||
bool hasCRC() const { return HasCRC; }
|
||||
bool hasVirtualization() const { return HasVirtualization; }
|
||||
bool isMinSize() const { return MinSize; }
|
||||
bool useNEONForSinglePrecisionFP() const {
|
||||
return hasNEON() && UseNEONForSinglePrecisionFP; }
|
||||
|
||||
@@ -327,7 +332,7 @@ public:
|
||||
|
||||
bool isR9Reserved() const { return IsR9Reserved; }
|
||||
|
||||
bool useMovt() const { return UseMovt && hasV6T2Ops(); }
|
||||
bool useMovt() const { return UseMovt && !isMinSize(); }
|
||||
bool supportsTailCall() const { return SupportsTailCall; }
|
||||
|
||||
bool allowsUnalignedMem() const { return AllowsUnalignedMem; }
|
||||
|
Reference in New Issue
Block a user