[Clang] Avoid building unnecessary expressions when checking satisfaction (#164611)
When establishing constraint satisfaction, we were building expressions
even for compound constraint,
This is unnecessary extra work that accounts for ~20% of the performance
regression observed here
https://github.com/llvm/llvm-project/pull/161671#issuecomment-3420976661