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

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 1 07:10:36 PDT 2023


================
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc -mtriple=aarch64-linux-gnu -o - %s | FileCheck %s
+; RUN: llc -mtriple=aarch64-linux-gnu -hoist-const-loads=false -o - %s | FileCheck %s
----------------
david-arm wrote:

Sorry, what I said was confusing! I mean the latter - just recreate the CHECK lines with the patch without adding `-hoist-const-loads=false`. So long as the remaining instructions in the loop look the same as before I think it should be valid.

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


More information about the llvm-commits mailing list