[llvm] [MachineLICM] Allow hoisting loads from invariant address (PR #70796)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 6 06:13:05 PST 2023


================
@@ -780,9 +813,23 @@ void MachineLICMBase::HoistOutOfLoop(MachineDomTreeNode *HeaderN,
 
     // Process the block
     SpeculationState = SpeculateUnknown;
+
+    auto CanMoveLoad = [](MachineLoop *L) -> bool {
----------------
david-arm wrote:

This lamda function doesn't seem to be used anywhere I think?

https://github.com/llvm/llvm-project/pull/70796


More information about the llvm-commits mailing list