From 04d8cf06221a9e7986f6e2c2f7dc2bfd4a010a9d Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Wed, 4 May 2016 15:19:02 +0000 Subject: [PATCH] Use a uniform name for the load combine pass. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268507 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LoadCombine.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/Transforms/Scalar/LoadCombine.cpp b/lib/Transforms/Scalar/LoadCombine.cpp index a54cd884abe..fcdb6ab77d4 100644 --- a/lib/Transforms/Scalar/LoadCombine.cpp +++ b/lib/Transforms/Scalar/LoadCombine.cpp @@ -35,6 +35,8 @@ using namespace llvm; STATISTIC(NumLoadsAnalyzed, "Number of loads analyzed for combining"); STATISTIC(NumLoadsCombined, "Number of loads combined"); +#define LDCOMBINE_NAME "Combine Adjacent Loads" + namespace { struct PointerOffsetPair { Value *Pointer; @@ -65,7 +67,7 @@ public: bool runOnBasicBlock(BasicBlock &BB) override; void getAnalysisUsage(AnalysisUsage &AU) const override; - const char *getPassName() const override { return "LoadCombine"; } + const char *getPassName() const override { return LDCOMBINE_NAME; } static char ID; typedef IRBuilder BuilderTy; @@ -273,10 +275,7 @@ BasicBlockPass *llvm::createLoadCombinePass() { return new LoadCombine(); } -INITIALIZE_PASS_BEGIN(LoadCombine, "load-combine", "Combine Adjacent Loads", - false, false) +INITIALIZE_PASS_BEGIN(LoadCombine, "load-combine", LDCOMBINE_NAME, false, false) INITIALIZE_PASS_DEPENDENCY(AAResultsWrapperPass) INITIALIZE_PASS_DEPENDENCY(GlobalsAAWrapperPass) -INITIALIZE_PASS_END(LoadCombine, "load-combine", "Combine Adjacent Loads", - false, false) - +INITIALIZE_PASS_END(LoadCombine, "load-combine", LDCOMBINE_NAME, false, false) -- 2.50.1