Files
clang-p2996/llvm/lib/CodeGen/MachineLICM.cpp
Florian Hahn ef102b4a63 [MachineLICM] Don't allow hoisting invariant loads across mem barrier. (#116987)
The improvements in 63917e1 / #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
2024-11-21 10:25:04 +00:00

64 KiB