[scev] minor style improvement [nfc]
authorPhilip Reames <listmail@philipreames.com>
Wed, 6 Oct 2021 19:15:16 +0000 (12:15 -0700)
committerPhilip Reames <listmail@philipreames.com>
Wed, 6 Oct 2021 19:15:16 +0000 (12:15 -0700)
llvm/lib/Analysis/ScalarEvolution.cpp

index 4fb2266..b767ada 100644 (file)
@@ -6668,9 +6668,7 @@ bool ScalarEvolution::isSCEVExprNeverPoison(const Instruction *I) {
       SCEVOps.push_back(getSCEV(Op));
   }
   auto *DefI = getDefiningScopeBound(SCEVOps);
-  if (isGuaranteedToTransferExecutionTo(DefI, I))
-    return true;
-  return false;
+  return isGuaranteedToTransferExecutionTo(DefI, I);
 }
 
 bool ScalarEvolution::isAddRecNeverPoison(const Instruction *I, const Loop *L) {