[compiler-rt] [llvm] [CallPromotionUtils]Implement conditional indirect call promotion with vtable-based comparison (PR #81378)

David Li via llvm-commits llvm-commits at lists.llvm.org
Tue May 14 12:13:11 PDT 2024


================
@@ -185,12 +187,30 @@ static void createRetBitCast(CallBase &CB, Type *RetTy, CastInst **RetBitCast) {
     U->replaceUsesOfWith(&CB, Cast);
 }
 
+// Returns the or result of all icmp instructions.
+static Value *getOrResult(const SmallVector<Value *, 2> &ICmps,
----------------
david-xl wrote:

Nit: change the name to getORResult or just getORs

https://github.com/llvm/llvm-project/pull/81378


More information about the llvm-commits mailing list