[all-commits] [llvm/llvm-project] b18bda: ARM: reuse existing libcall global variable if pos...
Tim Northover via All-commits
all-commits at lists.llvm.org
Wed Jul 14 06:15:10 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b18bda67915c67285c2b8d5fb88210f9a7436b8c
https://github.com/llvm/llvm-project/commit/b18bda67915c67285c2b8d5fb88210f9a7436b8c
Author: Tim Northover <t.p.northover at gmail.com>
Date: 2021-07-14 (Wed, 14 Jul 2021)
Changed paths:
M llvm/lib/Target/ARM/ARMFastISel.cpp
M llvm/test/CodeGen/ARM/fast-isel-call.ll
Log Message:
-----------
ARM: reuse existing libcall global variable if possible.
If we try to create a new GlobalVariable on each iteration, the Module will
detect the name collision and "helpfully" rename later iterations by appending
".1" etc. But "___udivsi3.1" doesn't exist and we definitely don't want to try
to call it.
So instead check whether there's already a global with the right name in the
module and use that if so.
More information about the All-commits
mailing list