mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Allow BBVectorize to fuse compare instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159088 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -104,6 +104,10 @@ static cl::opt<bool>
|
||||
NoSelect("bb-vectorize-no-select", cl::init(false), cl::Hidden,
|
||||
cl::desc("Don't try to vectorize select instructions"));
|
||||
|
||||
static cl::opt<bool>
|
||||
NoCmp("bb-vectorize-no-cmp", cl::init(false), cl::Hidden,
|
||||
cl::desc("Don't try to vectorize comparison instructions"));
|
||||
|
||||
static cl::opt<bool>
|
||||
NoGEP("bb-vectorize-no-gep", cl::init(false), cl::Hidden,
|
||||
cl::desc("Don't try to vectorize getelementptr instructions"));
|
||||
@ -570,6 +574,9 @@ namespace {
|
||||
} else if (isa<SelectInst>(I)) {
|
||||
if (!Config.VectorizeSelect)
|
||||
return false;
|
||||
} else if (isa<CmpInst>(I)) {
|
||||
if (!Config.VectorizeCmp)
|
||||
return false;
|
||||
} else if (GetElementPtrInst *G = dyn_cast<GetElementPtrInst>(I)) {
|
||||
if (!Config.VectorizeGEP)
|
||||
return false;
|
||||
@ -1990,6 +1997,7 @@ VectorizeConfig::VectorizeConfig() {
|
||||
VectorizeMath = !::NoMath;
|
||||
VectorizeFMA = !::NoFMA;
|
||||
VectorizeSelect = !::NoSelect;
|
||||
VectorizeCmp = !::NoCmp;
|
||||
VectorizeGEP = !::NoGEP;
|
||||
VectorizeMemOps = !::NoMemOps;
|
||||
AlignedOnly = ::AlignedOnly;
|
||||
|
Reference in New Issue
Block a user