[SubtargetFeatuers] Simplify the code used to imply features from CPU name.
authorCraig Topper <craig.topper@intel.com>
Mon, 4 Mar 2019 02:02:22 +0000 (02:02 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 4 Mar 2019 02:02:22 +0000 (02:02 +0000)
commita761f9f4079acff4a3b1ace5e439d4c446a8db05
tree18a31c49e9eb55937d88d93c1fe886cf2496f0b0
parent088b1c9cdcdb3d83fa730c1fcbae6db8252fe76d
[SubtargetFeatuers] Simplify the code used to imply features from CPU name.

If we make SetImpliedBits OR features outside of its loop, we can reuse it for the first round of implying features for CPUs.

llvm-svn: 355298
llvm/lib/MC/SubtargetFeature.cpp