[llvm] [OpenMP] [IR Builder] Changes to Support Scan Operation (PR #136035)
Abid Qadeer via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 16 03:17:56 PDT 2025
================
@@ -4182,6 +4600,9 @@ Expected<CanonicalLoopInfo *> OpenMPIRBuilder::createCanonicalLoop(
Builder.restoreIP(CodeGenIP);
Value *Span = Builder.CreateMul(IV, Step);
Value *IndVar = Builder.CreateAdd(Span, Start);
+ if (InScan) {
+ ScanInfo.IV = IndVar;
+ }
----------------
abidh wrote:
Braces
https://github.com/llvm/llvm-project/pull/136035
More information about the llvm-commits
mailing list