[LLVMbugs] [Bug 2557] New: Anders pass asserts on extractvalue/insertvalue

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jul 17 05:38:23 PDT 2008


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

           Summary: Anders pass asserts on extractvalue/insertvalue
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Interprocedural Analyses
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: matthijs at stdin.nl
                CC: llvmbugs at cs.uiuc.edu


Very easy to reproduce: Feed any program containing a insertvalue or
extractvalue to Anders AA pass, and it asserts. These instructions were
recently added (for the "first class aggregate" feature), but no one told
anders about them yet.

Also see bug #2451, which is the same bug, but for the vector insert/extract
instructions.

Using a testcase from InstCombine, we can easily check this:

llvm-as < test/Transforms/InstCombine/extractvalue.ll | opt -anders-aa
-disable-output
Unknown instruction:    %s1.1 = insertvalue { i32, i32 } undef, i32 0, 0       
        ; <{ i32, i32 }> [#uses=1]
opt[0x86db1a6]
opt[0x86db2d8]
[0xffffe420]
/lib/tls/i686/cmov/libc.so.6(abort+0x101)[0xb7d4f201]
opt[0x854b1e3]
opt(_ZN4llvm11InstVisitorIN42_GLOBAL__N_Andersens.cpp_00000000_00A7C8139AndersensEvE20visitInsertValueInstERNS_15InsertValueInstE+0x18)[0x8560582]
opt(_ZN4llvm11InstVisitorIN42_GLOBAL__N_Andersens.cpp_00000000_00A7C8139AndersensEvE16visitInsertValueERNS_15InsertValueInstE+0x18)[0x856059c]
opt(_ZN4llvm11InstVisitorIN42_GLOBAL__N_Andersens.cpp_00000000_00A7C8139AndersensEvE5visitERNS_11InstructionE+0x4fc)[0x8560bf8]
opt(_ZN4llvm11InstVisitorIN42_GLOBAL__N_Andersens.cpp_00000000_00A7C8139AndersensEvE5visitINS_14ilist_iteratorINS_11InstructionEEEEEvT_S8_+0x45)[0x8560c67]
opt(_ZN4llvm11InstVisitorIN42_GLOBAL__N_Andersens.cpp_00000000_00A7C8139AndersensEvE5visitERNS_10BasicBlockE+0x5e)[0x8560cde]
opt(_ZN4llvm11InstVisitorIN42_GLOBAL__N_Andersens.cpp_00000000_00A7C8139AndersensEvE5visitINS_14ilist_iteratorINS_10BasicBlockEEEEEvT_S8_+0x45)[0x8560d29]
opt(_ZN4llvm11InstVisitorIN42_GLOBAL__N_Andersens.cpp_00000000_00A7C8139AndersensEvE5visitERNS_8FunctionE+0x5e)[0x8560da0]
opt(_ZN4llvm11InstVisitorIN42_GLOBAL__N_Andersens.cpp_00000000_00A7C8139AndersensEvE5visitEPNS_8FunctionE+0x18)[0x8560dbe]
opt[0x854e781]
opt[0x8560e00]
opt(_ZN4llvm13MPPassManager11runOnModuleERNS_6ModuleE+0x108)[0x8667420]
opt(_ZN4llvm15PassManagerImpl3runERNS_6ModuleE+0x6e)[0x86675d8]
opt(_ZN4llvm11PassManager3runERNS_6ModuleE+0x1b)[0x866762b]
opt(main+0xc10)[0x839ffda]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7d39050]
opt(__gxx_personality_v0+0x335)[0x8391a81]
Aborted (core dumped)


-- 
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