mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
[ARM64] Prefer generation of bzero on Darwin only
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207760 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -90,8 +90,11 @@ ARM64Subtarget::ClassifyGlobalReference(const GlobalValue *GV,
|
||||
/// memset with zero passed as the second argument. Otherwise it
|
||||
/// returns null.
|
||||
const char *ARM64Subtarget::getBZeroEntry() const {
|
||||
// At the moment, always prefer bzero.
|
||||
return "bzero";
|
||||
// Prefer bzero on Darwin only.
|
||||
if(isTargetDarwin())
|
||||
return "bzero";
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void ARM64Subtarget::overrideSchedPolicy(MachineSchedPolicy &Policy,
|
||||
|
||||
Reference in New Issue
Block a user