[LoopPred] Be uniform about proving generated conditions
authorPhilip Reames <listmail@philipreames.com>
Mon, 1 Apr 2019 16:26:08 +0000 (16:26 +0000)
committerPhilip Reames <listmail@philipreames.com>
Mon, 1 Apr 2019 16:26:08 +0000 (16:26 +0000)
commit05e3e554b47aee32588ec30fbf0d64db6a438ab8
treeb76dc88c88b28472a3661f883bb66b888d7f97bf
parent6c21ccd245bb89134a296a5ccf74ef2a5158f6e9
[LoopPred] Be uniform about proving generated conditions

We'd been optimizing the case where the predicate was obviously true, do the same for the false case.  Mostly just for completeness sake, but also may improve compile time in loops which will exit through the guard.  Such loops are presumed rare in fastpath code, but may be present down untaken paths, so optimizing for them is still useful.

llvm-svn: 357408
llvm/lib/Transforms/Scalar/LoopPredication.cpp
llvm/test/Transforms/LoopPredication/basic.ll