]> granicus.if.org Git - clang/commit
[X86] Remove __extension__ from macro intrinsics when its not needed.
authorCraig Topper <craig.topper@intel.com>
Thu, 31 May 2018 00:51:20 +0000 (00:51 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 31 May 2018 00:51:20 +0000 (00:51 +0000)
commit5eee836d45d8c29236a6836b581a17f9a36a926e
tree8358766521184eafe0d1a83a79e7f5d77ce0f6a7
parentc1d322ac64b3ca72e442b2471da33357b7255350
[X86] Remove __extension__ from macro intrinsics when its not needed.

I think this is a holdover from when we used to declare variables inside the macros. And then its been copy and pasted forward for years every time a new macro intrinsic gets added.

Interestingly this caused some tests for IRGen to be slightly more optimized. We now return a zeroinitializer directly instead of going through a store+load.

It also removed a bogus error message on another test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333613 91177308-0d34-0410-b5e6-96231b3b80d8
23 files changed:
lib/Headers/avx2intrin.h
lib/Headers/avx512bwintrin.h
lib/Headers/avx512dqintrin.h
lib/Headers/avx512erintrin.h
lib/Headers/avx512fintrin.h
lib/Headers/avx512pfintrin.h
lib/Headers/avx512vbmi2intrin.h
lib/Headers/avx512vlbwintrin.h
lib/Headers/avx512vldqintrin.h
lib/Headers/avx512vlintrin.h
lib/Headers/avx512vlvbmi2intrin.h
lib/Headers/avxintrin.h
lib/Headers/emmintrin.h
lib/Headers/f16cintrin.h
lib/Headers/gfniintrin.h
lib/Headers/shaintrin.h
lib/Headers/smmintrin.h
lib/Headers/tmmintrin.h
lib/Headers/vpclmulqdqintrin.h
lib/Headers/xmmintrin.h
lib/Headers/xopintrin.h
test/CodeGen/avx-builtins.c
test/Sema/x86-builtin-palignr.c