llvm-project icon indicating copy to clipboard operation
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

Open BalaRishi-AMD opened this issue 8 years ago • 3 comments

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

BalaRishi-AMD avatar Sep 03 '18 06:09 BalaRishi-AMD

Fixed by rL341947. Closing.

llvmbot avatar Sep 17 '18 15:09 llvmbot

Fix in review: https://reviews.llvm.org/D51801

llvmbot avatar Sep 10 '18 08:09 llvmbot

IR reproducer Adding an IR reproducer derived from SemaTemplateInstantiate.cpp. Reproduce as follows: $ opt -S -early-cse-memssa -gvn-hoist reproducer.ll

llvmbot avatar Sep 05 '18 14:09 llvmbot