[IndVars][NFC] Remove redundant param in optimizeLoopExitWithUnknownExitCount
There was a crippled version of this transform for Inverted predicate, so the same query was done twice. Advanced version of this transform wasn't implemented for inverted condition. Thus, the code was hard to read. The only real purpose of the Inverted param was to make a simple isKnownPredicateAt query. Instead if this, use evaluatePredicateAt to solve the task for both inverted and non-inverted predicate. This slightly changes the order of queries, but effectively it should save some time by avoiding duplicating queries, and simplifies the code a lot. I also could not find any evidence that we ever eliminate anything with Inverted = true, but conservatively preserved the current behavior. Maybe we can remove it and save some compile time. Differential Revision: https://reviews.llvm.org/D139814 Reviewed By: nikic
Loading
Please sign in to comment