The loopInfos gets invalidated after collapsing nested loops. Use the 
saved afterIP since the returned afterIP by applyDynamicWorkshareLoop
may be not valid.
Details
Details
Diff Detail
Diff Detail
| Paths 
 |  Differential  D120294  
[MLIR] Fix afterIP for dynamic worksharing-loop after collaping loops ClosedPublic Authored by peixin on Feb 21 2022, 7:09 PM. 
Details Summary The loopInfos gets invalidated after collapsing nested loops. Use the  
Diff Detail Event TimelineHerald added subscribers: awarzynski, sdasgup3, wenzhicui and 20 others.  ·  View Herald TranscriptFeb 21 2022, 7:09 PM Herald added subscribers: sstefan1, stephenneuendorffer, nicolasvasilache.  ·  View Herald TranscriptFeb 21 2022, 7:09 PM This revision is now accepted and ready to land.Feb 21 2022, 10:27 PM This revision was landed with ongoing or failed builds.Mar 2 2022, 11:38 PM Closed by commit rGa5605c9a15b3: [MLIR] Fix afterIP for dynamic worksharing-loop after collaping loops (authored by peixin).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 412032 mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
 mlir/test/Target/LLVMIR/openmp-llvm.mlir
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||