[llvm] a7ae227 - [scev] minor style improvement [nfc]
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 6 12:15:34 PDT 2021
Author: Philip Reames
Date: 2021-10-06T12:15:16-07:00
New Revision: a7ae227baf42c325015e89ccd5ec281ba97a0d8a
URL: https://github.com/llvm/llvm-project/commit/a7ae227baf42c325015e89ccd5ec281ba97a0d8a
DIFF: https://github.com/llvm/llvm-project/commit/a7ae227baf42c325015e89ccd5ec281ba97a0d8a.diff
LOG: [scev] minor style improvement [nfc]
Added:
Modified:
llvm/lib/Analysis/ScalarEvolution.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 4fb2266b6e89..b767adac6a59 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -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) {
More information about the llvm-commits
mailing list