SelectionDAGBuilder: update comment in HandlePHINodesInSuccessorBlocks.
authorHans Wennborg <hans@hanshq.net>
Thu, 19 Mar 2015 00:57:51 +0000 (00:57 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 19 Mar 2015 00:57:51 +0000 (00:57 +0000)
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

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

index f3641ec..83472ef 100644 (file)
@@ -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;