[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:
Bradley Smith
2014-05-01 13:11:59 +00:00
parent 68a7a88223
commit b378cacf1d
2 changed files with 17 additions and 7 deletions

View File

@@ -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,