[llvm-dev] uninitialized values in Attributes.cpp
regehr via llvm-dev
llvm-dev at lists.llvm.org
Sun Nov 20 17:56:59 PST 2016
> We should first confirm that there is actually a problem. At least on some platforms (e.g. PowerPC), valgrind's ability to accurately track uses of undefined data is limited.
Sure, I'm happy to do legwork here but not sure how to proceed.
I'll add that I still have a number (~300) of valgrind-related problems
that show up for an LLVM built using Clang, but not for one built using
GCC. A typical one is below. We should definitely get to the bottom of
these.
John
FAIL: LLVM :: CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll (4514 of 18737)
******************** TEST 'LLVM ::
CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll' FAILED ********************
Script:
--
/home/regehr/llvm/build-llvmtrunk-vgtest/./bin/llc -arm-global-merge
-global-merge-group-by-use=false -filetype=obj <
/home/regehr/llvm/test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll |
/home/regehr/llvm/build-llvmtrunk-vgtest/./bin/llvm-dwarfdump
-debug-dump=info - |
/home/regehr/llvm/build-llvmtrunk-vgtest/./bin/FileCheck
/home/regehr/llvm/test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll
--
Exit Code: 123
Command Output (stderr):
--
==10217== Conditional jump or move depends on uninitialised value(s)
==10217== at 0x10BE9A0:
llvm::DwarfCompileUnit::addRange(llvm::RangeSpan) (DwarfCompileUnit.cpp:212)
==10217== by 0x1078EBA:
llvm::DwarfDebug::endFunction(llvm::MachineFunction const*)
(DwarfDebug.cpp:1132)
==10217== by 0x106221C: llvm::AsmPrinter::EmitFunctionBody()
(AsmPrinter.cpp:982)
==10217== by 0x87CA02:
llvm::ARMAsmPrinter::runOnMachineFunction(llvm::MachineFunction&)
(ARMAsmPrinter.cpp:165)
==10217== by 0x1184F35:
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(MachineFunctionPass.cpp:62)
==10217== by 0x13EBF7E:
llvm::FPPassManager::runOnFunction(llvm::Function&)
(LegacyPassManager.cpp:1513)
==10217== by 0x13EC1D2:
llvm::FPPassManager::runOnModule(llvm::Module&) (LegacyPassManager.cpp:1534)
==10217== by 0x13EC6D5: runOnModule (LegacyPassManager.cpp:1590)
==10217== by 0x13EC6D5:
llvm::legacy::PassManagerImpl::run(llvm::Module&)
(LegacyPassManager.cpp:1693)
==10217== by 0x64914C: compileModule(char**, llvm::LLVMContext&)
(llc.cpp:524)
==10217== by 0x6467EA: main (llc.cpp:282)
==10217==
--
More information about the llvm-dev
mailing list