[PATCH] D30543: [JumpThreading] Perform phi-translation in SimplifyPartiallyRedundantLoad.

Xin Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 2 12:43:13 PST 2017


trentxintong added inline comments.


================
Comment at: lib/Transforms/Scalar/JumpThreading.cpp:1005
+    // unordered, that should have been checked when we entered the function.
+    assert(isUnordered() && "Attempting to CSE volatile or atomic loads");
+    // If this is a load on a phi pointer, phi-translate it and search
----------------
junbuml wrote:
> Maybe  LI->isUnordered()  ?
Good catch.


https://reviews.llvm.org/D30543





More information about the llvm-commits mailing list