[clang] [flang] [llvm] Fix/172104 clang cl simd intrinsics (PR #172116)

Andrew Pinski via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 12 17:33:15 PST 2025


================
@@ -153,9 +153,13 @@ bool X86TargetInfo::initFeatureMap(
     llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU,
     const std::vector<std::string> &FeaturesVec) const {
   // FIXME: This *really* should not be here.
-  // X86_64 always has SSE2.
-  if (getTriple().getArch() == llvm::Triple::x86_64)
+  // X86_64 always has SSE2 and SSE4.1 to support common SIMD intrinsics.
----------------
pinskia wrote:

x86_64 Linux didn't always have sse4.1.

https://github.com/llvm/llvm-project/pull/172116


More information about the llvm-commits mailing list