mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
[PM/AA] Switch to an early-exit. NFC. This was split out of another
change because the diff is *useless*. I assure you, I just switched to early-return in this function. Cleanup in preparation for my next commit, as requested in code review! llvm-svn: 242880
This commit is contained in:
parent
939d6a13a3
commit
4237391aee
@ -2809,7 +2809,9 @@ namespace {
|
||||
if (isa<StoreInst>(I)) {
|
||||
AA->replaceWithNewValue(I, K);
|
||||
AA->replaceWithNewValue(J, K);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
Type *IType = I->getType();
|
||||
Type *JType = J->getType();
|
||||
|
||||
@ -2831,8 +2833,7 @@ namespace {
|
||||
getReplacementName(K, false, 1));
|
||||
} else {
|
||||
Value *CV0 = ConstantInt::get(Type::getInt32Ty(Context), 0);
|
||||
K1 = ExtractElementInst::Create(K, CV0,
|
||||
getReplacementName(K, false, 1));
|
||||
K1 = ExtractElementInst::Create(K, CV0, getReplacementName(K, false, 1));
|
||||
}
|
||||
|
||||
if (JType->isVectorTy()) {
|
||||
@ -2847,15 +2848,13 @@ namespace {
|
||||
getReplacementName(K, false, 2));
|
||||
} else {
|
||||
Value *CV1 = ConstantInt::get(Type::getInt32Ty(Context), numElem - 1);
|
||||
K2 = ExtractElementInst::Create(K, CV1,
|
||||
getReplacementName(K, false, 2));
|
||||
K2 = ExtractElementInst::Create(K, CV1, getReplacementName(K, false, 2));
|
||||
}
|
||||
|
||||
K1->insertAfter(K);
|
||||
K2->insertAfter(K1);
|
||||
InsertionPt = K2;
|
||||
}
|
||||
}
|
||||
|
||||
// Move all uses of the function I (including pairing-induced uses) after J.
|
||||
bool BBVectorize::canMoveUsesOfIAfterJ(BasicBlock &BB,
|
||||
|
Loading…
Reference in New Issue
Block a user