[PATCH] D37460: [GVN] Prevent LoadPRE from hoisting through guards

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 11 12:48:50 PDT 2017


efriedma added a subscriber: reames.
efriedma added a comment.

We consider volatile loads and stores as potentially trapping as a courtesy to our users.  Strictly speaking, it's undefined behavior in C, but people sometimes intentionally trigger SIGSEGV using volatile loads, so we don't want to cause an unrelated crash before that happens.  Breaking that testcase should be fine.


https://reviews.llvm.org/D37460





More information about the llvm-commits mailing list