[llvm] DAG: Get libcall info from LibcallLowering in more places (PR #176836)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 20 01:13:57 PST 2026
================
@@ -9224,7 +9224,7 @@ std::pair<SDValue, SDValue> SelectionDAG::getStrstr(SDValue Chain,
std::pair<SDValue, SDValue>
SelectionDAG::getMemcmp(SDValue Chain, const SDLoc &dl, SDValue Mem0,
SDValue Mem1, SDValue Size, const CallInst *CI) {
- RTLIB::LibcallImpl MemcmpImpl = getLibcalls().getLibcallImpl(RTLIB::MEMCMP);
+ RTLIB::LibcallImpl MemcmpImpl = Libcalls->getLibcallImpl(RTLIB::MEMCMP);
----------------
RKSimon wrote:
Is there are reason to replace the getLibcalls() helper with direct access to the Libcalls member? I don't want to start bikeshedding, but a mixture of approaches tends to cause headaches in the long run.
https://github.com/llvm/llvm-project/pull/176836
More information about the llvm-commits
mailing list