@@ -156,28 +156,18 @@ static bool
156156getAArch64MicroArchFeaturesFromMtune (const  Driver &D, StringRef Mtune,
157157                                     const  ArgList &Args,
158158                                     std::vector<StringRef> &Features) {
159-   std::string MtuneLowerCase = Mtune.lower ();
160159  //  Check CPU name is valid, but ignore any extensions on it.
160+   std::string MtuneLowerCase = Mtune.lower ();
161161  llvm::AArch64::ExtensionSet Extensions;
162162  StringRef Tune;
163-   if  (!DecodeAArch64Mcpu (D, MtuneLowerCase, Tune, Extensions))
164-     return  false ;
165- 
166-   return  true ;
163+   return  DecodeAArch64Mcpu (D, MtuneLowerCase, Tune, Extensions);
167164}
168165
169166static  bool 
170167getAArch64MicroArchFeaturesFromMcpu (const  Driver &D, StringRef Mcpu,
171168                                    const  ArgList &Args,
172169                                    std::vector<StringRef> &Features) {
173-   StringRef CPU;
174-   //  Check CPU name is valid, but ignore any extensions on it.
175-   llvm::AArch64::ExtensionSet DecodedFeature;
176-   std::string McpuLowerCase = Mcpu.lower ();
177-   if  (!DecodeAArch64Mcpu (D, McpuLowerCase, CPU, DecodedFeature))
178-     return  false ;
179- 
180-   return  getAArch64MicroArchFeaturesFromMtune (D, CPU, Args, Features);
170+   return  getAArch64MicroArchFeaturesFromMtune (D, Mcpu, Args, Features);
181171}
182172
183173void  aarch64::getAArch64TargetFeatures (const  Driver &D,
0 commit comments