[LLVMbugs] [Bug 3452] New: InstCombiner::SimplifyDemandedInstructionBit hangs

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Jan 31 01:33:30 PST 2009


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

           Summary: InstCombiner::SimplifyDemandedInstructionBit hangs
           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=2482)
 --> (http://llvm.org/bugs/attachment.cgi?id=2482)
testcase: llvm-as <x.ll | opt -O1

llvm-gcc bootstrap hangs here:

/home/edwin/llvm-bootstrap/llvm-gcc-obj/./gcc/cc1 -quiet -I. -I.
-I../../llvm-gcc4.2/gcc -I../../llvm-gcc4.2/gcc/.
-I../../llvm-gcc4.2/gcc/../include -I../../llvm-gcc4.2/gcc/../libcpp/include
-I../../llvm-gcc4.2/gcc/../libdecnumber -I../libdecnumber
-I/home/edwin/llvm-bootstrap//llvm-obj//include
-I/home/edwin/llvm-bootstrap/llvm/include -iprefix
/home/edwin/llvm-bootstrap/llvm-gcc-obj/gcc/../lib/gcc/x86_64-unknown-linux-gnu/4.2.1/
-isystem /home/edwin/llvm-bootstrap/llvm-gcc-obj/./gcc/include -DIN_GCC
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -DL_moddi3
-DHIDE_EXPORTS -isystem
/home/edwin/llvm-bootstrap/llvm-gcc-obj/../install/x86_64-unknown-linux-gnu/include
-isystem
/home/edwin/llvm-bootstrap/llvm-gcc-obj/../install/x86_64-unknown-linux-gnu/sys-include
-isystem ./include ../../llvm-gcc4.2/gcc/libgcc2.c -quiet -dumpbase libgcc2.c
-mtune=generic -auxbase-strip libgcc/./_moddi3.o -g -g -O2 -O2 -O2 -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-fPIC -fexceptions -fnon-call-exceptions -fvisibility=hidden

It also reproduces with -O1, and doesn't with -O0.

If I do -O0 -emit-llvm-bc, and then 'opt -O1 | llc -relocation-model=pic' it
doesn't reproduce.

However I was able to dump the module from gdb.

A backtrace:

#0  0x0000000000a630c1 in llvm::APInt::clearUnusedBits (this=0x7fffc0f31c70) at
/home/edwin/llvm-bootstrap/llvm/include/llvm/ADT/APInt.h:127
#1  0x0000000000a744b6 in APInt (this=0x7fffc0f31c80, numBits=1, val=0,
isSigned=false) at /home/edwin/llvm-bootstrap/llvm/include/llvm/ADT/AP
Int.h:219
#2  0x0000000000fa36d6 in (anonymous
namespace)::InstCombiner::SimplifyDemandedUseBits ()
#3  0x0000000000faab51 in (anonymous
namespace)::InstCombiner::SimplifyDemandedBits ()
#4  0x0000000000fa4105 in (anonymous
namespace)::InstCombiner::SimplifyDemandedUseBits ()
#5  0x0000000000fa69cf in (anonymous
namespace)::InstCombiner::SimplifyDemandedInstructionBits ()
#6  0x0000000000faeb35 in (anonymous namespace)::InstCombiner::visitAnd ()
#7  0x0000000000fb9055 in llvm::InstVisitor<(anonymous
namespace)::InstCombiner, llvm::Instruction*>::visit ()
#8  0x0000000000fba7c0 in (anonymous namespace)::InstCombiner::DoOneIteration
()
#9  0x0000000000fbaeae in (anonymous namespace)::InstCombiner::runOnFunction ()
#10 0x000000000110ff7b in llvm::FPPassManager::runOnFunction ()
#11 0x0000000001059450 in (anonymous namespace)::CGPassManager::runOnModule ()
#12 0x000000000110fb57 in llvm::MPPassManager::runOnModule ()
#13 0x000000000110fd56 in llvm::PassManagerImpl::run ()
During symbol reading, DW_AT_name missing from DW_TAG_base_type.
During symbol reading, DW_AT_name missing from DW_TAG_base_type.
During symbol reading, DW_AT_name missing from DW_TAG_base_type.
During symbol reading, DW_AT_name missing from DW_TAG_base_type.
During symbol reading, DW_AT_name missing from DW_TAG_base_type
During symbol reading, DW_AT_name missing from DW_TAG_base_type.
During symbol reading, DW_AT_name missing from DW_TAG_base_type.
During symbol reading, DW_AT_type missing from DW_TAG_subrange_type.
During symbol reading, DW_AT_type missing from DW_TAG_subrange_type.
During symbol reading, DW_AT_name missing from DW_TAG_base_type.
During symbol reading, DW_AT_name missing from DW_TAG_base_type.
During symbol reading, DW_AT_type missing from DW_TAG_subrange_type.
#14 0x0000000000a1d43e in llvm_asm_file_end () at
../../llvm-gcc4.2/gcc/llvm-backend.cpp:716
During symbol reading, DW_AT_name missing from DW_TAG_base_type.
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
During symbol reading, DW_AT_type missing from DW_TAG_subrange_type.
During symbol reading, DW_AT_type missing from DW_TAG_subrange_type.
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
During symbol reading, DW_AT_type missing from DW_TAG_subrange_type.
#15 0x0000000000987042 in compile_file () at
../../llvm-gcc4.2/gcc/toplev.c:1191
#16 0x0000000000988d3a in do_compile () at ../../llvm-gcc4.2/gcc/toplev.c:2263
#17 0x0000000000988da1 in toplev_main (argc=49, argv=0x7fffc0f34e08) at
../../llvm-gcc4.2/gcc/toplev.c:2295
#18 0x00000000004da9c9 in main (argc=49, argv=0x7fffc0f34e08) at
../../llvm-gcc4.2/gcc/llvm-main.cpp:39


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