{"id":{"repo_id":"alberta","oai_identifier":"oai:ualberta.scholaris.ca:123456789/103031"},"canonical_url":"https://search.ndltd.org/etd/alberta/oai:ualberta.scholaris.ca:123456789/103031","repository":{"repo_id":"alberta","name":"University of Alberta","base_url":"https://era.library.ualberta.ca/oai"},"display":{"title":"Utilizing Idle Processor Resources in LLVM Vectorization via Scalar Interpolation","abstract":"Loop vectorization is a well-studied technique in compiler development that utilizes vector units of the underlying processor to improve the performance of the loop. Loop vectorization is widely adopted in production-level compilers to leverage the processor SIMD capacities. Traditionally, most compilers convert all iterations of a vectorizable loop into vector operations to decrease processing time, as the throughput of vector operations is higher than their scalar counterparts. Yet with the advent of new processor architectures especially in out-of-order superScalar architectures, vectorizing the entire loop might not saturate the computation capacity of the processor as the processor has several pipelines, which can be fed by different instructions at the same clock cycle. Therefore, current vectorization techniques fall short of realizing the whole computation capacity of the processor and may lead to generating sub-optimal code in terms of performance. To mitigate this issue, this thesis proposes Scalar Interpolation, a technique that inserts scalar operations into vectorized loops to increase the utilization in processors with distinct pipelines for scalar and vector processing. Scalar interpolation inserts scalar operations for an entire iteration of the sequential loop to avoid data movements between vector and scalar registers. A challenge in this technique was to devise an approach to guide the compiler’s decision to interpolate scalar operations in a loop. We developed a static cost model and an auto-tuning approach to dynamically discover a sweet spot for scalar interpolation in a loop. A performance study on an LLVM-based prototype reveals speedups of up to 30% on Intel Xeon (x86) with static analysis of the cost model, and 43% on Kunpeng-920 (AArch64) with auto-tuning. This thesis also explores the usability of scalar interpolation in real-world programs by using a crawler to find opportunities for scalar interpolation in popular github repositories.","abstract_html":"Loop vectorization is a well-studied technique in compiler development that utilizes vector units of the underlying processor to improve the performance of the loop. Loop vectorization is widely adopted in production-level compilers to leverage the processor SIMD capacities. Traditionally, most compilers convert all iterations of a vectorizable loop into vector operations to decrease processing time, as the throughput of vector operations is higher than their scalar counterparts. Yet with the advent of new processor architectures especially in out-of-order superScalar architectures, vectorizing the entire loop might not saturate the computation capacity of the processor as the processor has several pipelines, which can be fed by different instructions at the same clock cycle. Therefore, current vectorization techniques fall short of realizing the whole computation capacity of the processor and may lead to generating sub-optimal code in terms of performance. To mitigate this issue, this thesis proposes Scalar Interpolation, a technique that inserts scalar operations into vectorized loops to increase the utilization in processors with distinct pipelines for scalar and vector processing. Scalar interpolation inserts scalar operations for an entire iteration of the sequential loop to avoid data movements between vector and scalar registers. A challenge in this technique was to devise an approach to guide the compiler’s decision to interpolate scalar operations in a loop. We developed a static cost model and an auto-tuning approach to dynamically discover a sweet spot for scalar interpolation in a loop. A performance study on an LLVM-based prototype reveals speedups of up to 30% on Intel Xeon (x86) with static analysis of the cost model, and 43% on Kunpeng-920 (AArch64) with auto-tuning. This thesis also explores the usability of scalar interpolation in real-world programs by using a crawler to find opportunities for scalar interpolation in popular github repositories.","abstract_has_math":false,"creators":["Ghanbari, Reza"],"institution":"University of Alberta","degree_name":"Master of Science","degree_level":"Master's","degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":["Amaral, Jose Nelson (Computing Science)"],"committee_chairs":[],"committee_members":[],"year":2025,"date_issued":"2025-06","date_published":"2025-06","updated_at":"2026-11-26T21:54:35Z","subjects":["Software Systems","Compiler Optimization","Vectorization"],"languages":["en"],"rights":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.7939/81813","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.7939/81813","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aalberta%3Aoai%3Aualberta.scholaris.ca%3A123456789%2F103031","prefix":"oai_dc"},"source_record":{"url":"https://era.library.ualberta.ca/oai?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aualberta.scholaris.ca%3A123456789%2F103031","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Amaral, Jose Nelson (Computing Science)"]},{"key":"dc:creator","label":"Author","values":["Ghanbari, Reza"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-06-12T18:22:13Z"]},{"key":"dc:date.issued","label":"Date","values":["2025-06"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Master's"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Alberta"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Software Systems","Compiler Optimization","Vectorization"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.doi","label":"DOI","values":["https://doi.org/10.7939/81813"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Loop vectorization is a well-studied technique in compiler development that utilizes vector units of the underlying processor to improve the performance of the loop. Loop vectorization is widely adopted in production-level compilers to leverage the processor SIMD capacities. Traditionally, most compilers convert all iterations of a vectorizable loop into vector operations to decrease processing time, as the throughput of vector operations is higher than their scalar counterparts. Yet with the advent of new processor architectures especially in out-of-order superScalar architectures, vectorizing the entire loop might not saturate the computation capacity of the processor as the processor has several pipelines, which can be fed by different instructions at the same clock cycle. Therefore, current vectorization techniques fall short of realizing the whole computation capacity of the processor and may lead to generating sub-optimal code in terms of performance. To mitigate this issue, this thesis proposes Scalar Interpolation, a technique that inserts scalar operations into vectorized loops to increase the utilization in processors with distinct pipelines for scalar and vector processing. Scalar interpolation inserts scalar operations for an entire iteration of the sequential loop to avoid data movements between vector and scalar registers. A challenge in this technique was to devise an approach to guide the compiler’s decision to interpolate scalar operations in a loop. We developed a static cost model and an auto-tuning approach to dynamically discover a sweet spot for scalar interpolation in a loop. A performance study on an LLVM-based prototype reveals speedups of up to 30% on Intel Xeon (x86) with static analysis of the cost model, and 43% on Kunpeng-920 (AArch64) with auto-tuning. This thesis also explores the usability of scalar interpolation in real-world programs by using a crawler to find opportunities for scalar interpolation in popular github repositories."]},{"key":"dc:title","label":"Title","values":["Utilizing Idle Processor Resources in LLVM Vectorization via Scalar Interpolation"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Amaral, Jose Nelson (Computing Science)"],"dc:creator":["Ghanbari, Reza"],"dc:date.accessioned":["2025-06-12T18:22:13Z"],"dc:date.issued":["2025-06"],"dc:description.abstract":["Loop vectorization is a well-studied technique in compiler development that utilizes vector units of the underlying processor to improve the performance of the loop. Loop vectorization is widely adopted in production-level compilers to leverage the processor SIMD capacities. Traditionally, most compilers convert all iterations of a vectorizable loop into vector operations to decrease processing time, as the throughput of vector operations is higher than their scalar counterparts. Yet with the advent of new processor architectures especially in out-of-order superScalar architectures, vectorizing the entire loop might not saturate the computation capacity of the processor as the processor has several pipelines, which can be fed by different instructions at the same clock cycle. Therefore, current vectorization techniques fall short of realizing the whole computation capacity of the processor and may lead to generating sub-optimal code in terms of performance. To mitigate this issue, this thesis proposes Scalar Interpolation, a technique that inserts scalar operations into vectorized loops to increase the utilization in processors with distinct pipelines for scalar and vector processing. Scalar interpolation inserts scalar operations for an entire iteration of the sequential loop to avoid data movements between vector and scalar registers. A challenge in this technique was to devise an approach to guide the compiler’s decision to interpolate scalar operations in a loop. We developed a static cost model and an auto-tuning approach to dynamically discover a sweet spot for scalar interpolation in a loop. A performance study on an LLVM-based prototype reveals speedups of up to 30% on Intel Xeon (x86) with static analysis of the cost model, and 43% on Kunpeng-920 (AArch64) with auto-tuning. This thesis also explores the usability of scalar interpolation in real-world programs by using a crawler to find opportunities for scalar interpolation in popular github repositories."],"dc:identifier.doi":["https://doi.org/10.7939/81813"],"dc:language.iso":["en"],"dc:rights":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."],"dc:subject":["Software Systems","Compiler Optimization","Vectorization"],"dc:title":["Utilizing Idle Processor Resources in LLVM Vectorization via Scalar Interpolation"],"dc:type":["Thesis"],"others:access_status":["open.access"],"thesis:degree_level":["Master's"],"thesis:degree_name":["Master of Science"],"thesis:institution_name":["University of Alberta"]},"updated_at":"2026-11-26T21:54:35Z"}