This cherry-picks the following patches on the release branch:
6280bb4cd80e [clang] Remove redundant condition (NFC).
51bf4c0e6d4c [clang] Add -ffinite-loops & -fno-finite-loops options.
fb4d8fe80701 [clang] Update mustprogress tests
This patch adds 2 new options to control when Clang adds mustprogress:
- -ffinite-loops: assume all loops are finite; mustprogress is added to all loops, regardless of the selected language standard.
- -fno-finite-loops: assume no loop is finite; mustprogress is not added to any loop or function. We could add mustprogress to functions without loops, but we would have to detect that in Clang, which is probably not worth it.