[X86] Centalize the 'sse4' hack to a single place in X86TargetInfo::setFeatureEnabled...
authorCraig Topper <craig.topper@intel.com>
Mon, 6 Jul 2020 21:58:31 +0000 (14:58 -0700)
committerCraig Topper <craig.topper@intel.com>
Mon, 6 Jul 2020 22:00:32 +0000 (15:00 -0700)
commitc359c5d534429c96f1cebdf8d845b8120e9c2ef0
tree3c1165f652f8b4e7d8124dce4049e26aff002cf0
parent6d9626d2da3e59da0b0ae85d975b05a8f96b9939
[X86] Centalize the 'sse4' hack to a single place in X86TargetInfo::setFeatureEnabledImpl. NFCI

Instead of detecting the string in 2 places. Just swap the string
to 'sse4.1' or 'sse4.2' at the top of the function.

Prep work for a patch to switch the rest of this function to a
table based system. And I don't want to include 'sse4a' in the
table.
clang/lib/Basic/Targets/X86.cpp