================
@@ -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);
----------------
nikic wrote:

If possible, I'd rather not have this flag for one user. Can we instead change 
PHIRemoveIncoming to match? What I would expect to happen is that will move the 
element currently at RemovedIdx to the end and restore the old value in its 
place, instead of shifting all the values.

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