cmConditionEvaluator: Evaluate a one-argument condition directly
A condition such as `if(A)` copied its argument into a std::list and
ran all five reduction levels on it. No level can reduce a single
argument unless it is an opening parenthesis. Each predicate and
operator needs at least one more argument.
For one argument that is not an opening parenthesis, return its boolean
value at once. An opening parenthesis still goes through the levels,
so the "mismatched parenthesis" error stays the same.
A loop of 1000000 `if(A)` blocks runs 3.8% fewer instructions.
Issue: #28335
2 files changed