[llvm] [ConstantHoisting] Add a TTI hook to prevent hoisting. (PR #69004)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 13 05:37:44 PST 2023


================
@@ -427,6 +427,11 @@ class TargetTransformInfoImplBase {
     return TTI::TCC_Free;
   }
 
+  bool preferToKeepConstantsAttached(const Instruction &Inst,
+                                     const Function &Fn) const {
+    return true;
----------------
paulwalker-arm wrote:

Darn it. Thanks, I'll push an update.

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


More information about the llvm-commits mailing list