[LibCallsShrinkWrap][NFC] Reuse createCond and createOrCond
commitf6cb9b82e2dcfb068fe7c031f9d71e878f69505d
authorJim Lin <jim@andestech.com>
Tue, 27 Jun 2023 02:29:45 +0000 (27 10:29 +0800)
committerJim Lin <jim@andestech.com>
Tue, 27 Jun 2023 06:02:19 +0000 (27 14:02 +0800)
treef2e54d7094cf5195b9708a32493a0194a87aef3c
parent628b0048177ee442bda92489b08e10f04a0353ee
[LibCallsShrinkWrap][NFC] Reuse createCond and createOrCond

Add two new functions `createCond` and `createOrCond` that accept extra
arguments Arg and Arg/Arg2 respectively.

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D153253
llvm/lib/Transforms/Utils/LibCallsShrinkWrap.cpp