If the feature is on the command line we should honor it for all
functions. I don't think we could reliably target a single function
for a less capable processor than what the rest of the program is
compiled for.
Fixes PR52407.
 Differential  D113647  
[X86] Honor command line features along with cpu_specific attribute Authored by craig.topper on Nov 10 2021, 10:08 PM. 
Details If the feature is on the command line we should honor it for all Fixes PR52407. 
Diff Detail 
 Event TimelineComment Actions Is there a lit-test that could be added to make sure this happens? We put this in an llvm-attribute, so it should be checkable.  |