[llvm] [TTI][TLI] Expose TargetLowering::isOffsetFoldingLegal (backend) to TargetTransformInfo for middle-end cost-benefit analysis (PR #104644)

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 20 23:10:02 PDT 2024


================
@@ -665,6 +665,8 @@ class TargetTransformInfo {
   void getPeelingPreferences(Loop *L, ScalarEvolution &SE,
                              PeelingPreferences &PP) const;
 
+  bool isOffsetFoldingLegal(const GlobalValue *GV) const;
----------------
minglotus-6 wrote:

done. PTAL, thanks!

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


More information about the llvm-commits mailing list