================
@@ -877,7 +877,8 @@ Value *PHINode::removeIncomingValue(unsigned Idx) {
   Tracker.emplaceIfTracking<PHIRemoveIncoming>(this, Idx);
   llvm::Value *LLVMV =
       cast<llvm::PHINode>(Val)->removeIncomingValue(Idx,
-                                                    
/*DeletePHIIfEmpty=*/false);
+                                                    /*DeletePHIIfEmpty=*/false,
+                                                    
/*KeepIncomingOrder=*/true);
----------------
Enna1 wrote:

Yes, I open https://github.com/llvm/llvm-project/pull/172397 for this. I think 
we can use `llvm::PHINode::removeIncomingValueIf()` here.

https://github.com/llvm/llvm-project/pull/171963
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to