[clang] [X86] Change target of __builtin_ia32_cmp[p|s][s|d] from avx into sse/sse2 (PR #84136)

Shengchen Kan via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 6 03:34:25 PST 2024


================
@@ -2613,6 +2614,24 @@ void CGBuilderInserter::InsertHelper(
 // called function.
 void CodeGenFunction::checkTargetFeatures(const CallExpr *E,
                                           const FunctionDecl *TargetDecl) {
+  // SemaCheking cannot handle below x86 builtins because they have different
+  // parameter ranges with different TargetAttribute of caller.
----------------
KanRobert wrote:

Why? Any background. Please add it to the description.

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


More information about the cfe-commits mailing list