Add peephole optimization to replace x86 SIMD instructions with smaller equivalents #112880
Labels
area-Meta
tenet-performance
Performance related issue
untriaged
New issue has not been triaged by the area owner
As pointed out in #112728 (comment), there are some SIMD instructions that have equivalents with smaller encoding.
For example,
pupcklpd
can be replaced withmovlhps
, which is 1 byte smaller, under the following conditions:Similarly,
vpermilps
can be replaced with the smallervpshufd
if mixing float and integer domain instructions is not a concern.llvm has logic that identifies some of these replacements here
cc @tannergooding
The text was updated successfully, but these errors were encountered: