[LLVMbugs] [Bug 1694] New: SimplifyDemandedBits uses an uninitialized value

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Sep 21 08:02:23 PDT 2007


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

           Summary: SimplifyDemandedBits uses an uninitialized value
           Product: new-bugs
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu


Running test/CodeGen/ARM/2007-08-14-SpillDeadDef.ll under valgrind gives

Conditional jump or move depends on uninitialised value(s)
   at 0x86420A3: llvm::TargetLowering::SimplifyDemandedBits(llvm::SDOperand,
unsigned long long, unsigned long long&, unsigned long long&,
llvm::TargetLowering::TargetLoweringOpt&, unsigned) const
(TargetLowering.cpp:516)
   by 0x86411DB: llvm::TargetLowering::SimplifyDemandedBits(llvm::SDOperand,
unsigned long long, unsigned long long&, unsigned long long&,
llvm::TargetLowering::TargetLoweringOpt&, unsigned) const
(TargetLowering.cpp:403)
   by 0x85D1829: (anonymous
namespace)::DAGCombiner::SimplifyDemandedBits(llvm::SDOperand)
(DAGCombiner.cpp:159)
   by 0x85D838B: (anonymous namespace)::DAGCombiner::visitAND(llvm::SDNode*)
(DAGCombiner.cpp:1525)
   by 0x85DB03C: (anonymous namespace)::DAGCombiner::visit(llvm::SDNode*)
(DAGCombiner.cpp:647)
   by 0x85DB7C5: (anonymous namespace)::DAGCombiner::Run(bool)
(DAGCombiner.cpp:578)
   by 0x85DBD2A: llvm::SelectionDAG::Combine(bool, llvm::AliasAnalysis&)
(DAGCombiner.cpp:4773)
   by 0x860B2BE: llvm::SelectionDAGISel::CodeGenAndEmitDAG(llvm::SelectionDAG&)
(SelectionDAGISel.cpp:4627)
   by 0x861F5D2: llvm::SelectionDAGISel::SelectBasicBlock(llvm::BasicBlock*,
llvm::MachineFunction&, llvm::FunctionLoweringInfo&)
(SelectionDAGISel.cpp:4664)
   by 0x8621211: llvm::SelectionDAGISel::runOnFunction(llvm::Function&)
(SelectionDAGISel.cpp:4365)
   by 0x8822027: llvm::FPPassManager::runOnFunction(llvm::Function&)
(PassManager.cpp:1168)
   by 0x8822285: llvm::FunctionPassManagerImpl::run(llvm::Function&)
(PassManager.cpp:1126)

Conditional jump or move depends on uninitialised value(s)
   at 0x86420A3: llvm::TargetLowering::SimplifyDemandedBits(llvm::SDOperand,
unsigned long long, unsigned long lo
ng&, unsigned long long&, llvm::TargetLowering::TargetLoweringOpt&, unsigned)
const (TargetLowering.cpp:516)        by 0x86412AA:
llvm::TargetLowering::SimplifyDemandedBits(llvm::SDOperand, unsigned long long,
unsigned long lo
ng&, unsigned long long&, llvm::TargetLowering::TargetLoweringOpt&, unsigned)
const (TargetLowering.cpp:407)
   by 0x85D1829: (anonymous
namespace)::DAGCombiner::SimplifyDemandedBits(llvm::SDOperand)
(DAGCombiner.cpp:159)
   by 0x85D838B: (anonymous namespace)::DAGCombiner::visitAND(llvm::SDNode*)
(DAGCombiner.cpp:1525)
   by 0x85DB03C: (anonymous namespace)::DAGCombiner::visit(llvm::SDNode*)
(DAGCombiner.cpp:647)
   by 0x85DB7C5: (anonymous namespace)::DAGCombiner::Run(bool)
(DAGCombiner.cpp:578)
   by 0x85DBD2A: llvm::SelectionDAG::Combine(bool, llvm::AliasAnalysis&)
(DAGCombiner.cpp:4773)
   by 0x860B2BE: llvm::SelectionDAGISel::CodeGenAndEmitDAG(llvm::SelectionDAG&)
(SelectionDAGISel.cpp:4627)
   by 0x861F5D2: llvm::SelectionDAGISel::SelectBasicBlock(llvm::BasicBlock*,
llvm::MachineFunction&, llvm::FunctionLoweringInfo&)
(SelectionDAGISel.cpp:4664)
   by 0x8621211: llvm::SelectionDAGISel::runOnFunction(llvm::Function&)
(SelectionDAGISel.cpp:4365)
   by 0x8822027: llvm::FPPassManager::runOnFunction(llvm::Function&)
(PassManager.cpp:1168)
   by 0x8822285: llvm::FunctionPassManagerImpl::run(llvm::Function&)
(PassManager.cpp:1126)

Reproduce using
llvm-as < 2007-08-14-SpillDeadDef.ll | valgrind --tool=memcheck llc
-mtriple=arm-apple-darwin > /dev/null


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