mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-22 19:38:40 +00:00
Simplify code. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166392 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5c6e9ae14e
commit
b75209cb66
@ -1186,14 +1186,13 @@ bool LoopVectorizationLegality::canVectorizeMemory(BasicBlock &BB) {
|
|||||||
/// marked with the NoAlias attribute.
|
/// marked with the NoAlias attribute.
|
||||||
bool LoopVectorizationLegality::isIdentifiedSafeObject(Value* Val) {
|
bool LoopVectorizationLegality::isIdentifiedSafeObject(Value* Val) {
|
||||||
assert(Val && "Invalid value");
|
assert(Val && "Invalid value");
|
||||||
if (dyn_cast<GlobalValue>(Val))
|
if (isa<GlobalValue>(Val))
|
||||||
return true;
|
return true;
|
||||||
if (dyn_cast<AllocaInst>(Val))
|
if (isa<AllocaInst>(Val))
|
||||||
return true;
|
return true;
|
||||||
Argument *A = dyn_cast<Argument>(Val);
|
if (Argument *A = dyn_cast<Argument>(Val))
|
||||||
if (!A)
|
|
||||||
return false;
|
|
||||||
return A->hasNoAliasAttr();
|
return A->hasNoAliasAttr();
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LoopVectorizationLegality::AddReductionVar(PHINode *Phi,
|
bool LoopVectorizationLegality::AddReductionVar(PHINode *Phi,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user