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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 16 22:55:29 PDT 2024


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

This needs documentation. I've never had any idea what isOffsetFoldingLegal means 

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


More information about the llvm-commits mailing list