Developer Guide

Intel® oneAPI DPC++/C++ Compiler Handbook for FPGAs

ID 785441
Date 10/24/2024
Public
Document Table of Contents

Fuse Adjacent Loops With Unequal Trip Counts (-Xsenable-unequal-tc-fusion)

Use the -Xsenable-unequal-tc-fusion flag in your icpx command to direct the Intel® oneAPI DPC++/C++ Compiler to fuse adjacent loops with different trip counts into a single loop without affecting either loop's functionality.

Example

icpx -fintelfpga -Xshardware -Xsenable-unequal-tc-fusion <source_file>.cpp

For more information about fusing loops, refer to Fuse Loops to Reduce Overhead and Improve Performance.