Skip to content
Unverified Commit ef102b4a authored by Florian Hahn's avatar Florian Hahn Committed by GitHub
Browse files

[MachineLICM] Don't allow hoisting invariant loads across mem barrier. (#116987)

The improvements in 63917e19 / #70796 do not check for memory
barriers/unmodelled sideeffects, which means we may incorrectly hoist
loads across memory barriers.

Fix this by checking any machine instruction in the loop is a load-fold
barrier.

PR: https://github.com/llvm/llvm-project/pull/116987
parent eb48e110
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment