[all-commits] [llvm/llvm-project] 3a8266: [SCEV] Removed an unnecessary assertion
CongzheUalberta via All-commits
all-commits at lists.llvm.org
Tue May 3 14:27:04 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3a8266902b58978a6fd52b779e8ad94fbf368182
https://github.com/llvm/llvm-project/commit/3a8266902b58978a6fd52b779e8ad94fbf368182
Author: Yangguang Li <yangguang.li at huawei.com>
Date: 2022-05-03 (Tue, 03 May 2022)
Changed paths:
M llvm/lib/Analysis/ScalarEvolution.cpp
Log Message:
-----------
[SCEV] Removed an unnecessary assertion
The assertion is to check we always get backedge taken count
(`BECount`) of zero when the exit condition is in select form
(`isa<BinaryOperation>(ExitCond)`) and the exit limit for the
first operand is zero `EL0.ExactNotTaken->isZero()`). However
the assertion is checking that the exit condition is NOT in
select form. Removing the the whole assertion since we now handle
select form in ScalarEvolution::getSequentialMinMaxExpr.
Reviewed By: reames, nikic
Differential Revision: https://reviews.llvm.org/D122835
More information about the All-commits
mailing list