[X86] Explicitly add popcnt feature to Intel CPUs with SSE4.2 in the frontend.
authorCraig Topper <craig.topper@intel.com>
Sun, 28 Jun 2020 18:06:40 +0000 (11:06 -0700)
committerCraig Topper <craig.topper@intel.com>
Sun, 28 Jun 2020 18:06:40 +0000 (11:06 -0700)
commit20a60f46f505fc790e126b8b860c689870355f36
tree9ee3d764b703e7da274490273201b439b6871a9f
parentb07feef8736d52e11c41631d3813a57a3b3ce6e5
[X86] Explicitly add popcnt feature to Intel CPUs with SSE4.2 in the frontend.

Previously we inferred it if sse4.2 ended up being enabled after
all feature processing. But writing -march=nehalem -mno-sse4.2
should have popcnt enabled.
clang/lib/Basic/Targets/X86.cpp
clang/test/Preprocessor/x86_target_features.c