Re:&& operator chains (and ||, possibly) generates unoptimiz...
by MaxBarraclough on Monday March 29, 2021 @05:31PM
(#26628422)
I imagine Clang and GCC have growing test-suites to defend against regressions. I wonder if they share them.
[ Parent
| on HN ]
Re:&& operator chains (and ||, possibly) generates unoptimiz...
by wyldfire on Monday March 29, 2021 @10:16PM
(#26630644)
They both do, yes.
LLVM's [1] includes (some of?) gcc's, the reverse may also be true.
LLVM also has extensive unit tests that can exercise codegen and backend functionality.
Re:&& operator chains (and ||, possibly) generates unoptimiz...
by sesuximo on Tuesday March 30, 2021 @09:46AM
(#26634546)
Clang writes a subset of LLVM IR, and other types of IR are supported but very poorly optimized/tested/etc. The LLVM docs say you should generate what Clang generates to avoid regressions.