This is an archive of the discontinued LLVM Phabricator instance.

AArch64Subtarget: Check ARMProcFamily instead of CPU part of triple.
AbandonedPublic

Authored by MatzeB on May 27 2016, 2:44 PM.

Details

Summary

A bunch of isXXX() checks in AArch64Subtarget compare the CPU part of
the target triple. It seems like we can use the existing (but currently
unused) ARMProcFamily field instead and save the string comparison.

This is NFC, except for the case of CPU=="cortex-a72" which is reported
as ARMProcFamilty==CortexA57 which lets isCortexA57() report true after
this commit.

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB updated this revision to Diff 58842.May 27 2016, 2:44 PM
MatzeB retitled this revision from to AArch64Subtarget: Check ARMProcFamily instead of CPU part of triple..
MatzeB updated this object.
MatzeB set the repository for this revision to rL LLVM.
MatzeB added a subscriber: llvm-commits.