1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[ScalarizeMaskedMemIntrinsics] Reverse some if conditions to reduce indentations to remove curly braces.

Pre-commit for D59180

llvm-svn: 356646
This commit is contained in:
Craig Topper 2019-03-21 05:54:37 +00:00
parent 32dcc7efb4
commit 5dc78e8e1d

View File

@ -581,29 +581,25 @@ bool ScalarizeMaskedMemIntrin::optimizeCallInst(CallInst *CI,
break;
case Intrinsic::masked_load:
// Scalarize unsupported vector masked load
if (!TTI->isLegalMaskedLoad(CI->getType())) {
scalarizeMaskedLoad(CI, ModifiedDT);
return true;
}
return false;
if (TTI->isLegalMaskedLoad(CI->getType()))
return false;
scalarizeMaskedLoad(CI, ModifiedDT);
return true;
case Intrinsic::masked_store:
if (!TTI->isLegalMaskedStore(CI->getArgOperand(0)->getType())) {
scalarizeMaskedStore(CI, ModifiedDT);
return true;
}
return false;
if (TTI->isLegalMaskedStore(CI->getArgOperand(0)->getType()))
return false;
scalarizeMaskedStore(CI, ModifiedDT);
return true;
case Intrinsic::masked_gather:
if (!TTI->isLegalMaskedGather(CI->getType())) {
scalarizeMaskedGather(CI, ModifiedDT);
return true;
}
return false;
if (TTI->isLegalMaskedGather(CI->getType()))
return false;
scalarizeMaskedGather(CI, ModifiedDT);
return true;
case Intrinsic::masked_scatter:
if (!TTI->isLegalMaskedScatter(CI->getArgOperand(0)->getType())) {
scalarizeMaskedScatter(CI, ModifiedDT);
return true;
}
return false;
if (TTI->isLegalMaskedScatter(CI->getArgOperand(0)->getType()))
return false;
scalarizeMaskedScatter(CI, ModifiedDT);
return true;
}
}