[PATCH] D37463: Fix miscompile in LoopSink pass

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 5 22:52:17 PDT 2017


mkazantsev added a comment.

I need to read what C++ specification says about this particular issue, but basically LLVM is not only used to compile C++. This situation can be illegal in other languages (again, need to dig more through specifications). My proposal is to add an option that prohibits this transform and set it to `false` by default, with abitily to turn it off for languages where it is prohibited.


Repository:
  rL LLVM

https://reviews.llvm.org/D37463





More information about the llvm-commits mailing list