From 5dc78e8e1d4ec074f753c65d19f3750ec8935312 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 21 Mar 2019 05:54:37 +0000 Subject: [PATCH] [ScalarizeMaskedMemIntrinsics] Reverse some if conditions to reduce indentations to remove curly braces. Pre-commit for D59180 llvm-svn: 356646 --- lib/CodeGen/ScalarizeMaskedMemIntrin.cpp | 36 +++++++++++------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/lib/CodeGen/ScalarizeMaskedMemIntrin.cpp b/lib/CodeGen/ScalarizeMaskedMemIntrin.cpp index 44b22c9a97c..3a27035a7cd 100644 --- a/lib/CodeGen/ScalarizeMaskedMemIntrin.cpp +++ b/lib/CodeGen/ScalarizeMaskedMemIntrin.cpp @@ -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; } }