mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166622 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
451f3199eb
commit
7c6de1d6e5
@ -1468,7 +1468,7 @@ LoopVectorizationCostModel::getInstructionCost(Instruction *I, unsigned VF) {
|
|||||||
case Instruction::Or:
|
case Instruction::Or:
|
||||||
case Instruction::Xor: {
|
case Instruction::Xor: {
|
||||||
Type *VTy = VectorType::get(I->getType(), VF);
|
Type *VTy = VectorType::get(I->getType(), VF);
|
||||||
return VTTI->getInstrCost(I->getOpcode(), VTy);
|
return VTTI->getInstrCost(I->getOpcode(), VTy);
|
||||||
}
|
}
|
||||||
case Instruction::Select: {
|
case Instruction::Select: {
|
||||||
SelectInst *SI = cast<SelectInst>(I);
|
SelectInst *SI = cast<SelectInst>(I);
|
||||||
@ -1476,8 +1476,8 @@ LoopVectorizationCostModel::getInstructionCost(Instruction *I, unsigned VF) {
|
|||||||
const SCEV *CondSCEV = SE->getSCEV(SI->getCondition());
|
const SCEV *CondSCEV = SE->getSCEV(SI->getCondition());
|
||||||
bool ScalarCond = (SE->isLoopInvariant(CondSCEV, TheLoop));
|
bool ScalarCond = (SE->isLoopInvariant(CondSCEV, TheLoop));
|
||||||
Type *CondTy = SI->getCondition()->getType();
|
Type *CondTy = SI->getCondition()->getType();
|
||||||
if (ScalarCond)
|
if (ScalarCond)
|
||||||
CondTy = VectorType::get(CondTy, VF);
|
CondTy = VectorType::get(CondTy, VF);
|
||||||
|
|
||||||
return VTTI->getInstrCost(I->getOpcode(), VTy, CondTy);
|
return VTTI->getInstrCost(I->getOpcode(), VTy, CondTy);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user