From: Hans Wennborg Date: Thu, 19 Mar 2015 00:57:51 +0000 (+0000) Subject: SelectionDAGBuilder: update comment in HandlePHINodesInSuccessorBlocks. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aa695c92eee8dd474bb6c1e1bf81b5e6dcd2ad4b;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232697 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index f3641ec157d..83472ef7f3f 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -7737,8 +7737,8 @@ SelectionDAGBuilder::HandlePHINodesInSuccessorBlocks(const BasicBlock *LLVMBB) { SmallPtrSet 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(SuccBB->begin())) continue;