llvm-project
llvm-project copied to clipboard
During llvm bootstrap 'CallGraph Pass Manager' fails with assertion `dominates(MD, U) && "Memory Def does not dominate it's uses"' for gvn hoist
| Bugzilla Link | 38807 |
| Resolution | FIXED |
| Resolved on | Sep 17, 2018 08:52 |
| Version | trunk |
| OS | Linux |
| Attachments | Reduced testcase file to reproduce the issue, Console output for assertion failure |
| Fixed by commit(s) | rL341947 |
Extended Description
While building the trunk source using llvm, faced the below assertion failure:
clang-8: /home/amd/llvm/lib/Analysis/MemorySSA.cpp:1792: void llvm::MemorySSA::verifyDomination(llvm::Function&) const: Assertion `dominates(MD, U) && "Memory Def does not dominate it's uses"' failed.
Steps to reproduce the issue with the reduced testcase:
- Download the attached file and untar it
- Compile the cpp file using the below command clang++ -O3 -mllvm -enable-gvn-hoist -fno-exceptions -w SemaTemplate_reduced.cpp
Fixed by rL341947. Closing.
Fix in review: https://reviews.llvm.org/D51801
IR reproducer Adding an IR reproducer derived from SemaTemplateInstantiate.cpp. Reproduce as follows: $ opt -S -early-cse-memssa -gvn-hoist reproducer.ll