[LLVMbugs] [Bug 10476] New: Assertion `(!From->hasAnyUseOfValue(i) || From->getValueType(i) == To->getValueType(i)) && "Cannot use this version of ReplaceAllUsesWith!"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jul 24 23:05:01 PDT 2011


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

           Summary: Assertion `(!From->hasAnyUseOfValue(i) ||
                    From->getValueType(i) == To->getValueType(i)) &&
                    "Cannot use this version of ReplaceAllUsesWith!"'
                    failed.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nadav.rotem at intel.com
                CC: llvmbugs at cs.uiuc.edu


llc: SelectionDAG.cpp:5204: void
llvm::SelectionDAG::ReplaceAllUsesWith(llvm::SDNode*, llvm::SDNode*,
llvm::SelectionDAG::DAGUpdateListener*): Assertion `(!From->hasAnyUseOfValue(i)
|| From->getValueType(i) == To->getValueType(i)) && "Cannot use this version of
ReplaceAllUsesWith!"' failed.
0  llc             0x000000000153ff42
1  llc             0x00000000015404d0
2  libpthread.so.0 0x00002aaaaabd4d60
3  libc.so.6       0x00002aaaab274f45 gsignal + 53
4  libc.so.6       0x00002aaaab276340 abort + 272
5  libc.so.6       0x00002aaaab26e486 __assert_fail + 246
6  llc             0x0000000000fa0900
llvm::SelectionDAG::ReplaceAllUsesWith(llvm::SDNode*, llvm::SDNode*,
llvm::SelectionDAG::DAGUpdateListener*) + 248
7  llc             0x0000000000f4bce9 (anonymous
namespace)::DAGCombiner::Run(llvm::CombineLevel) + 1011
8  llc             0x0000000000f4bf12
llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AliasAnalysis&,
llvm::CodeGenOpt::Level) + 54
9  llc             0x0000000000ff6f37
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 2067
10 llc             0x0000000000ff8e02
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 230
11 llc             0x0000000000ff9764
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 2400
12 llc             0x0000000000ff9ce3
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 849
13 llc             0x000000000114490d
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 85
14 llc             0x000000000147a237
llvm::FPPassManager::runOnFunction(llvm::Function&) + 371
15 llc             0x000000000147a42f
llvm::FPPassManager::runOnModule(llvm::Module&) + 81
16 llc             0x0000000001479ee3
llvm::MPPassManager::runOnModule(llvm::Module&) + 381
17 llc             0x000000000147b698 llvm::PassManagerImpl::run(llvm::Module&)
+ 116
18 llc             0x000000000147b6fb llvm::PassManager::run(llvm::Module&) +
33
19 llc             0x0000000000ab6424 main + 2410
20 libc.so.6       0x00002aaaab262304 __libc_start_main + 244
21 llc             0x0000000000ab4b69
Stack dump:
0.    Program arguments: llc fail_237502.ll 
1.    Running pass 'Function Pass Manager' on module 'fail_237502.ll'.
2.    Running pass 'X86 DAG->DAG Instruction Selection' on function
'@autogen_237502_1000'
; ModuleID = 'bugpoint-reduced-simplified.bc'
target triple = "x86_64-unknown-linux-gnu"

define void @autogen_237502_1000() {
BB:
  br label %CF

CF:                                               ; preds = %CF82, %CF, %BB
  br i1 undef, label %CF, label %CF82

CF82:                                             ; preds = %CF
  br i1 undef, label %CF, label %CF81

CF81:                                             ; preds = %CF86, %CF81, %CF82
  br i1 undef, label %CF81, label %CF84

CF84:                                             ; preds = %CF84, %CF81
  br i1 undef, label %CF84, label %CF85

CF85:                                             ; preds = %CF85, %CF84
  br i1 undef, label %CF85, label %CF86

CF86:                                             ; preds = %CF85
  br i1 undef, label %CF81, label %CF83

CF83:                                             ; preds = %CF83, %CF86
  br i1 undef, label %CF83, label %CF87

CF87:                                             ; preds = %CF87, %CF83
  br i1 undef, label %CF87, label %CF88

CF88:                                             ; preds = %CF88, %CF87
  %L58 = load <8 x i32>* null
  %Shuff68 = shufflevector <8 x i32> %L58, <8 x i32> undef, <8 x i32> <i32
undef, i32 7, i32 9, i32 undef, i32 13, i32 15, i32 1, i32 3>
  %B70 = ashr <8 x i32> zeroinitializer, %Shuff68
  br i1 undef, label %CF88, label %CF89

CF89:                                             ; preds = %CF89, %CF88
  br i1 false, label %CF89, label %CF90

CF90:                                             ; preds = %CF89
  store <8 x i32> %B70, <8 x i32>* undef
  ret void
}

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