diff options
author | Haochen Jiang <haochen.jiang@intel.com> | 2024-07-25 16:16:05 +0800 |
---|---|---|
committer | Haochen Jiang <haochen.jiang@intel.com> | 2024-07-30 09:47:56 +0800 |
commit | b4524c4430ba9771265bd9fc31e69a3f35dfe117 (patch) | |
tree | 4a9614e0423bc2d27fecd688919a1427262cf5a1 /gcc/tree-ssa-loop-prefetch.cc | |
parent | 1caeabdbd846d68cc333fcd50309a2f36a9bb101 (diff) | |
download | gcc-b4524c4430ba9771265bd9fc31e69a3f35dfe117.zip gcc-b4524c4430ba9771265bd9fc31e69a3f35dfe117.tar.gz gcc-b4524c4430ba9771265bd9fc31e69a3f35dfe117.tar.bz2 |
i386: Add non-optimize prefetchi intrins
Under -O0, with the "newly" introduced intrins, the variable will be
transformed as mem instead of the origin symbol_ref. The compiler will
then treat the operand as invalid and turn the operation into nop, which
is not expected. Use macro for non-optimize to keep the variable as
symbol_ref just as how prefetch intrin does.
gcc/ChangeLog:
* config/i386/prfchiintrin.h
(_m_prefetchit0): Add macro for non-optimized option.
(_m_prefetchit1): Ditto.
gcc/testsuite/ChangeLog:
* gcc.target/i386/prefetchi-1b.c: New test.
Diffstat (limited to 'gcc/tree-ssa-loop-prefetch.cc')
0 files changed, 0 insertions, 0 deletions