diff options
author | Stephen Hines <srhines@google.com> | 2014-10-17 08:47:43 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2014-10-17 13:12:25 -0700 |
commit | bfc2d688b591c574c0cc788348c74545ce894efa (patch) | |
tree | ac7eadad1814ff2f989e716c1ed0bd8fd1557e9a /include/llvm/Target | |
parent | 06d8c96f9e7be298f0e1372ccb8dea18fe149afa (diff) | |
download | external_llvm-bfc2d688b591c574c0cc788348c74545ce894efa.zip external_llvm-bfc2d688b591c574c0cc788348c74545ce894efa.tar.gz external_llvm-bfc2d688b591c574c0cc788348c74545ce894efa.tar.bz2 |
Bring in fixes for Cortex-A53 errata + build updates.
Bug: 18034609
Change-Id: I2cf0094eb9df801a84274ff29018431d75da89dd
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 87e7c14..a589d0e 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -200,6 +200,15 @@ public: unsigned &Size, unsigned &Offset, const TargetMachine *TM) const; + /// isAsCheapAsAMove - Return true if the instruction is as cheap as a move + /// instruction. + /// + /// Targets for different archs need to override this, and different + /// micro-architectures can also be finely tuned inside. + virtual bool isAsCheapAsAMove(const MachineInstr *MI) const { + return MI->isAsCheapAsAMove(); + } + /// reMaterialize - Re-issue the specified 'original' instruction at the /// specific location targeting a new destination register. /// The register in Orig->getOperand(0).getReg() will be substituted by |