On Wed, Apr 4, 2018 at 10:13 AM Linus Torvalds < torva...@linux-foundation.org> wrote: > The fact that clang by default enables "-fmerge-all-constants" > behavior is just inexcusable. That's not just "let's do invalid > optimizations based on undefined behavior". That's an actual "let's do > known invalid optimizations that are explicitly disallowed even by the > standard".
Manoj already has a patch for this that looks like it's passed code review: https://reviews.llvm.org/D45289 -- Thanks, ~Nick Desaulniers