diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2011-04-19 18:11:49 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2011-04-19 18:11:49 +0000 |
| commit | a2881ee8a436d0b64adfc4d10852921b9b9ae732 (patch) | |
| tree | e8b2a3a123f4b7ba3822696e84615ea87ca2f3ab /llvm/lib/Target/ARM/ARMSubtarget.h | |
| parent | df612ba0062dd6bab9a2017c05106b4a474e3de7 (diff) | |
| download | bcm5719-llvm-a2881ee8a436d0b64adfc4d10852921b9b9ae732.tar.gz bcm5719-llvm-a2881ee8a436d0b64adfc4d10852921b9b9ae732.zip | |
Avoid some 's' 16-bit instruction which partially update CPSR
(and add false dependency) when it isn't dependent on last CPSR defining
instruction. rdar://8928208
llvm-svn: 129773
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSubtarget.h')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h index e024182c474..5bce87f1415 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.h +++ b/llvm/lib/Target/ARM/ARMSubtarget.h @@ -110,6 +110,11 @@ protected: /// over 16-bit ones. bool Pref32BitThumb; + /// AvoidCPSRPartialUpdate - If true, codegen would avoid using instructions + /// that partially update CPSR and add false dependency on the previous + /// CPSR setting instruction. + bool AvoidCPSRPartialUpdate; + /// HasMPExtension - True if the subtarget supports Multiprocessing /// extension (ARMv7 only). bool HasMPExtension; @@ -190,6 +195,7 @@ protected: bool isFPBrccSlow() const { return SlowFPBrcc; } bool isFPOnlySP() const { return FPOnlySP; } bool prefers32BitThumb() const { return Pref32BitThumb; } + bool avoidCPSRPartialUpdate() const { return AvoidCPSRPartialUpdate; } bool hasMPExtension() const { return HasMPExtension; } bool hasFP16() const { return HasFP16; } |

