unni_c at csa.iisc.ernet.in
2012-Nov-10 05:45 UTC
[LLVMdev] error: terminator in the middle of basic block
Hello, I modified the PathProfiling.cpp and run opt -inesrt-path-profiling. it works correctly ,but after path-profile is complete in Verifier::visitTerminatorInst it prints "Terminator found in the middle of a basic block!" . error is I added two basic blocks after return basic block and return has br label %newprint when printed in pathprofile module but in Verifier::visitTerminatorInst I=br label %newprint and I.getParent()->getTerminator= <null> when I printed pathprofile mode return had terminator br label %newprint. what is the reason? unnikrishnan c -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Krzysztof Parzyszek
2012-Nov-11 13:46 UTC
[LLVMdev] error: terminator in the middle of basic block
On 11/9/2012 11:45 PM, unni_c at csa.iisc.ernet.in wrote:> > what is the reason?It's almost impossible to tell with only a verbal description, but my bet is that the branch is not the last instruction in the basic block. A terminator must be last. -Krzysztof -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Seemingly Similar Threads
- [LLVMdev] How to run SPEC200 benhmark in LLVM
- [LLVMdev] How to run SPEC200 benhmark in LLVM
- [LLVMdev] redundant checking of terminator in Verifier?
- [LLVMdev] Reviewer for our Path Profiling Implementation
- [LLVMdev] Reviewer for our Path Profiling Implementation