[llvm] [LICM] Improve hoisting of calls marked with invariant_load metadata (PR #193678)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 03:33:12 PDT 2026
================
@@ -7305,6 +7305,9 @@ bool llvm::isSafeToSpeculativelyExecuteWithOpcode(
return false;
const Function *Callee = CI->getCalledFunction();
+ // Assume we can always speculate invariant loads.
----------------
nikic wrote:
Huh, you're right. It's not obvious to me why that limitation exists though.
https://github.com/llvm/llvm-project/pull/193678
More information about the llvm-commits
mailing list