[Inliner] Don't removeDeadConstantUsers() when checking if a function is dead
authorArthur Eubanks <aeubanks@google.com>
Thu, 13 Jan 2022 18:09:52 +0000 (10:09 -0800)
committerArthur Eubanks <aeubanks@google.com>
Thu, 13 Jan 2022 22:29:45 +0000 (14:29 -0800)
commit757e044dce51d01391e3fa2dbff2cd8e16f964cb
tree0c91cc47a1162b195393bfd0f1fecbab6d75aaf5
parent00e0de05723a0eee491d4a1ddad69b7fe5265805
[Inliner] Don't removeDeadConstantUsers() when checking if a function is dead

If a function has many uses, this can take a good chunk of compile times.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D117236
llvm/include/llvm/IR/Constant.h
llvm/lib/Analysis/LazyCallGraph.cpp
llvm/lib/IR/Constants.cpp
llvm/lib/Transforms/IPO/Inliner.cpp