Developer Guide

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

ID 785441
Date 5/05/2025
Public

Visible to Intel only — GUID: GUID-CAFC7993-A4E7-4714-BD23-BBCC8D5E48A2

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.