diff options
author | Hans Wennborg <hans@hanshq.net> | 2015-03-19 00:57:51 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2015-03-19 00:57:51 +0000 |
commit | 5b64657e36555884dc937c8fe06a5805643653ec (patch) | |
tree | 3b28b5ed2e036a2b47027e9b521323a32bbd8f90 /llvm/lib/CodeGen | |
parent | a25e13aaf1364b899656d43a16a4f768135efc1f (diff) | |
download | bcm5719-llvm-5b64657e36555884dc937c8fe06a5805643653ec.tar.gz bcm5719-llvm-5b64657e36555884dc937c8fe06a5805643653ec.zip |
SelectionDAGBuilder: update comment in HandlePHINodesInSuccessorBlocks.
From what I can tell, the code is checking for PHIs that expect any value from
this block, not just constants.
llvm-svn: 232697
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index f3641ec157d..83472ef7f3f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -7737,8 +7737,8 @@ SelectionDAGBuilder::HandlePHINodesInSuccessorBlocks(const BasicBlock *LLVMBB) { SmallPtrSet<MachineBasicBlock *, 4> SuccsHandled; - // Check successor nodes' PHI nodes that expect a constant to be available - // from this block. + // Check PHI nodes in successors that expect a value to be available from this + // block. for (unsigned succ = 0, e = TI->getNumSuccessors(); succ != e; ++succ) { const BasicBlock *SuccBB = TI->getSuccessor(succ); if (!isa<PHINode>(SuccBB->begin())) continue; |