[all-commits] [llvm/llvm-project] f3eb5d: [LoopPred] Generalize profitability check to handl...
Philip Reames via All-commits
all-commits at lists.llvm.org
Tue Nov 19 14:08:37 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: f3eb5dee5756876be0524c59c21478659eba8c4d
https://github.com/llvm/llvm-project/commit/f3eb5dee5756876be0524c59c21478659eba8c4d
Author: Philip Reames <listmail at philipreames.com>
Date: 2019-11-19 (Tue, 19 Nov 2019)
Changed paths:
M llvm/lib/Transforms/Scalar/LoopPredication.cpp
M llvm/test/Transforms/LoopPredication/predicate-exits.ll
Log Message:
-----------
[LoopPred] Generalize profitability check to handle unswitch output
Unswitch (and other loop transforms) like to generate loop exit blocks with unconditional successors, and phi nodes (LCSSA, or simple multiple exiting blocks sharing an exit). Generalize the "likely very rare exit" check slightly to handle this form.
More information about the All-commits
mailing list