Also, refactor CallBrInstruction IRTest. Run via:
$ ninja IRTests
$ ./unittests/IR/IRTests --gtest_filter=InstructionsTest.CallBrInstruction
| Paths 
 |  Differential  D74947  
[unittests] demonstrate User::replaceUsesOfWith() breaking CallBrInst AbandonedPublic Authored by nickdesaulniers on Feb 20 2020, 9:16 PM. 
Details 
 Summary Also, refactor CallBrInstruction IRTest. Run via: $ ninja IRTests 
Diff Detail 
 Event TimelineComment Actions Can't land this test as is, because it would be red, due to User::replaceUsesOfWith() not updating the asm's argparam. Herald added subscribers: wenlei, pengfei, asbirlea and 3 others.  ·  View Herald TranscriptDec 8 2021, 5:09 PM Comment Actions This is no longer an issue after https://github.com/llvm/llvm-project/commit/2a721374aef3 since we now use !i placeholders to denote that these inputs are implicit; they're no longer listed twice in the operand list. 
Revision Contents 
 
 
Diff 245785 llvm/lib/IR/User.cpp
 llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
 llvm/unittests/IR/InstructionsTest.cpp
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||