[llvm] [OpenMP] [IR Builder] Changes to Support Scan Operation (PR #136035)

Anchu Rajendran S via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 27 16:22:14 PDT 2025


================
@@ -4182,6 +4598,8 @@ Expected<CanonicalLoopInfo *> OpenMPIRBuilder::createCanonicalLoop(
     Builder.restoreIP(CodeGenIP);
     Value *Span = Builder.CreateMul(IV, Step);
     Value *IndVar = Builder.CreateAdd(Span, Start);
+    if (InScan)
+      ScanInfo.IV = IndVar;
----------------
anchuraj wrote:

I have updated it to use ScanInfo. 

https://github.com/llvm/llvm-project/pull/136035


More information about the llvm-commits mailing list