[llvm] f6db18f - [PowerPC][NFC] make option ppc-formprep-max-vars can be set more than one time.
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 4 06:45:34 PDT 2021
Author: Chen Zheng
Date: 2021-11-04T13:44:58Z
New Revision: f6db18fd4ac83468cfbea512c4a2723bc98d830c
URL: https://github.com/llvm/llvm-project/commit/f6db18fd4ac83468cfbea512c4a2723bc98d830c
DIFF: https://github.com/llvm/llvm-project/commit/f6db18fd4ac83468cfbea512c4a2723bc98d830c.diff
LOG: [PowerPC][NFC] make option ppc-formprep-max-vars can be set more than one time.
Added:
Modified:
llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp b/llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
index b2e0781d81bb..31b95cda5f61 100644
--- a/llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
+++ b/llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
@@ -115,10 +115,11 @@
using namespace llvm;
-static cl::opt<unsigned> MaxVarsPrep("ppc-formprep-max-vars",
- cl::Hidden, cl::init(24),
- cl::desc("Potential common base number threshold per function for PPC loop "
- "prep"));
+static cl::opt<unsigned>
+ MaxVarsPrep("ppc-formprep-max-vars", cl::Hidden, cl::init(24),
+ cl::ZeroOrMore,
+ cl::desc("Potential common base number threshold per function "
+ "for PPC loop prep"));
static cl::opt<bool> PreferUpdateForm("ppc-formprep-prefer-update",
cl::init(true), cl::Hidden,
More information about the llvm-commits
mailing list