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:
parent
32dcc7efb4
commit
5dc78e8e1d
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user