Skip to content
Commit c96c1d8c authored by Tobias Grosser's avatar Tobias Grosser
Browse files

[ScopInfo] Consider only write-free dereferencable loads as invariant



When we introduced in r297375 support for hoisting loads that are known
to be dereferencable without any conditional guard, we forgot to keep the check
to verify that no other write into the very same location exists. This
change ensures now that dereferencable loads are allowed to access everything,
but can only be hoisted in case no conflicting write exists.

This resolves llvm.org/PR32778

Reported-by: default avatarHuihui Zhang <huihuiz@codeaurora.org>
llvm-svn: 301582
parent 9a98df63
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment