<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I am pretty sure that's fixed by <span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 11px; ">52309.</span><div><font class="Apple-style-span" face="-webkit-monospace" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" face="-webkit-monospace" size="3"><span class="Apple-style-span" style="font-size: 11px;">Evan</span></font></div><div><font class="Apple-style-span" face="-webkit-monospace" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font><div><div>On Jun 16, 2008, at 2:54 AM, Duncan Sands wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Evan,<br><br><blockquote type="cite">Can anyone reproduce this? Try make ENABLE_OPTIMIZED=1 DISABLE_LTO=1 <br></blockquote><blockquote type="cite">TARGET_FLAGS= TARGET_LLCFLAGS="-relocation-model=pic -disable-fp-elim"<br></blockquote><br>running this<br> llc -relocation-model=pic -disable-fp-elim -f Output/oggenc.llvm.bc -o Output/oggenc.llc.s<br>under valgrind gives:<br><br>Invalid read of size 8<br> at 0xB7C3C8: llvm::MachineOperand::getParent() (MachineOperand.h:116)<br> by 0xD55B74: UpdateKills(llvm::MachineInstr&, llvm::BitVector&, std::vector<llvm::MachineOperand*, std::allocator<llvm::MachineOperand*> >&) (VirtRegMap.cpp:642)<br> by 0xD5BFB3: (anonymous namespace)::LocalSpiller::RewriteMBB(llvm::MachineBasicBlock&, llvm::VirtRegMap&) (VirtRegMap.cpp:1823)<br> by 0xD5C1BF: (anonymous namespace)::LocalSpiller::runOnMachineFunction(llvm::MachineFunction&, llvm::VirtRegMap&) (VirtRegMap.cpp:333)<br> by 0xD23B82: (anonymous namespace)::RALinScan::runOnMachineFunction(llvm::MachineFunction&) (RegAllocLinearScan.cpp:289)<br> by 0x833E00: llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (MachineFunctionPass.h:41)<br> by 0xE8A842: llvm::FPPassManager::runOnFunction(llvm::Function&) (PassManager.cpp:1194)<br> by 0xE8AA67: llvm::FunctionPassManagerImpl::run(llvm::Function&) (PassManager.cpp:1149)<br> by 0xE8ABC5: llvm::FunctionPassManager::run(llvm::Function&) (PassManager.cpp:1094)<br> by 0x7D2D9C: main (llc.cpp:302)<br> Address 0x78888f0 is 88 bytes inside a block of size 120 free'd<br> at 0x4C23F5C: operator delete(void*) (vg_replace_malloc.c:342)<br> by 0x8D8A8C: __gnu_cxx::new_allocator<llvm::MachineOperand>::deallocate(llvm::MachineOperand*, unsigned long) (new_allocator.h:97)<br> by 0x8D8ABE: std::_Vector_base<llvm::MachineOperand, std::allocator<llvm::MachineOperand> >::_M_deallocate(llvm::MachineOperand*, unsigned long) (stl_vector.h:134)<br> by 0xCCE116: std::_Vector_base<llvm::MachineOperand, std::allocator<llvm::MachineOperand> >::~_Vector_base() (stl_vector.h:120)<br> by 0xCCE16C: std::vector<llvm::MachineOperand, std::allocator<llvm::MachineOperand> >::~vector() (stl_vector.h:268)<br> by 0xCF5375: llvm::MachineInstr::~MachineInstr() (MachineInstr.cpp:331)<br> by 0x83C6B4: llvm::iplist<llvm::MachineInstr, llvm::ilist_traits<llvm::MachineInstr> >::erase(llvm::ilist_iterator<llvm::MachineInstr>) (ilist.h:377)<br> by 0x83C6E0: llvm::MachineBasicBlock::erase(llvm::ilist_iterator<llvm::MachineInstr>) (MachineBasicBlock.h:263)<br> by 0xD589CA: (anonymous namespace)::LocalSpiller::CommuteToFoldReload(llvm::MachineBasicBlock&, llvm::ilist_iterator<llvm::MachineInstr>&, unsigned, unsigned, int, llvm::BitVector&, std::vector<llvm::MachineOperand*, std::allocator<llvm::MachineOperand*> >&, llvm::TargetRegisterInfo const*, llvm::VirtRegMap&) (VirtRegMap.cpp:1062)<br> by 0xD5B62F: (anonymous namespace)::LocalSpiller::RewriteMBB(llvm::MachineBasicBlock&, llvm::VirtRegMap&) (VirtRegMap.cpp:1690)<br> by 0xD5C1BF: (anonymous namespace)::LocalSpiller::runOnMachineFunction(llvm::MachineFunction&, llvm::VirtRegMap&) (VirtRegMap.cpp:333)<br> by 0xD23B82: (anonymous namespace)::RALinScan::runOnMachineFunction(llvm::MachineFunction&) (RegAllocLinearScan.cpp:289)<br><br>Later on I see complaints about LSR and CodeGenPrepare, but the above error (and others)<br>come first.<br><br>Ciao,<br><br>Duncan.<br></div></blockquote></div><br></div></body></html>