Extend JumpThreading's PRE to unordered atomic loads.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Transforms/Scalar/JumpThreading.cpp | ||
---|---|---|
926–927 | This comment seems wrong now. |
Comment Actions
Could you test that:
- non-atomic loads aren't forwarded to atomic loads
- non-atomic stores aren't forwarded to atomic loads (this seems useless, maybe it's valid?)
lgtm otherwise.
lib/Transforms/Scalar/JumpThreading.cpp | ||
---|---|---|
1059 | Li->isVolatile() seems simpler than having the comment. |
Comment Actions
Will add the negative tests as you suggest.
lib/Transforms/Scalar/JumpThreading.cpp | ||
---|---|---|
1059 | That sounds like an unrelated (to this patch) change. I've removed the /*isVolatile*/ comment for now (so that bit stays the same), let me know if you'd like me to s/false/LI->isVolatile()/ separately. |
This comment seems wrong now.