[Unroll-and-jam] Assertion `IDomNode && "Not immediate dominator specified for block!"' failed.
| Bugzilla Link | 48764 |
| Resolution | FIXED |
| Resolved on | Feb 05, 2021 08:27 |
| Version | trunk |
| OS | Linux |
| Attachments | reduced testcase |
| CC | @JonPsson,@sidbav,@whitneywhtsang |
Extended Description
opt -mcpu=z14 -O3 -enable-unroll-and-jam -allow-unroll-and-jam -unroll-and-jam-count=8 tc_crash0_aftercreduce.ll -o - S
#9 0x0000000003a36a9c llvm::UnrollAndJamLoop(llvm::Loop*, unsigned int, unsigned int, unsigned int, bool, llvm::LoopInfo*, llvm::ScalarEvolution*, llvm::DominatorTree*, llvm::AssumptionCache*, llvm::TargetTransformInfo const*, llvm::OptimizationRemarkEmitter*, llvm::Loop**) (./bin/opt+0x3a36a9c) #10 0x000000000372f036 tryToUnrollAndJamLoop(llvm::Function&, llvm::DominatorTree&, llvm::LoopInfo&, llvm::ScalarEvolution&, llvm::TargetTransformInfo const&, llvm::AssumptionCache&, llvm::DependenceInfo&, llvm::OptimizationRemarkEmitter&, int) (.isra.0) (./bin/opt+0x372f036) #11 0x000000000373054e (anonymous namespace)::LoopUnrollAndJam::runOnFunction(llvm::Function&) (./bin/opt+0x373054e)
This issue is resolved now. Here is the change: https://github.com/llvm/llvm-project/commit/22ebbc47655737eb543c8641b2e8491846b3aefb
Posted this patch to resolve this issue: https://reviews.llvm.org/D95806
I'll start to take a look at this issue
assigned to @sidbav