[LLVMbugs] [Bug 4112] New: TargetData missing in Scalar Evolution when called from ModulePass

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Apr 30 10:46:41 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4112

           Summary: TargetData missing in Scalar Evolution when called from
                    ModulePass
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=2913)
 --> (http://llvm.org/bugs/attachment.cgi?id=2913)
foo.cpp

See attached testcase:

opt: foo.cpp:28: virtual bool<unnamed>::Foo::runOnModule(llvm::Module&):
Assertion `SE.isSCEVable(IntegerType::get(32)->getPointerTo()) && "TargetData
missing"' failed.
0   opt             0x0000000000a7162c
1   opt             0x0000000000a71b0d
2   libpthread.so.0 0x00007f1a50a097b0
3   libc.so.6       0x00007f1a4fd29115 gsignal + 53
4   libc.so.6       0x00007f1a4fd2a633 abort + 387
5   libc.so.6       0x00007f1a4fd22159 __assert_fail + 233
6   LLVMModel.so    0x00007f1a4fad50fb
7   opt             0x00000000009facac
llvm::MPPassManager::runOnModule(llvm::Module&) + 206
8   opt             0x00000000009fc631
llvm::PassManagerImpl::run(llvm::Module&) + 111
9   opt             0x00000000009fc693 llvm::PassManager::run(llvm::Module&) +
33
10  opt             0x000000000070099e main + 3909
11  libc.so.6       0x00007f1a4fd155a6 __libc_start_main + 230
12  opt             0x00000000006f0fe9
Stack dump:
0.      Running pass 'test foo' on module 'x.bc'.

TargetData should be found by getAnalysisIfAvailable, because I explicitly
required it.

I tried moving the SCEV to a functionpass and requiring that functionpass from
the modulepass, but that leads to another bug (will open another bugreport).


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list