[llvm] [DAG] shouldReduceLoadWidth - add optional<unsigned> byte offset argument (PR #136723)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 22 09:52:45 PDT 2025


================
@@ -1824,8 +1824,10 @@ class TargetLoweringBase {
 
   /// Return true if it is profitable to reduce a load to a smaller type.
   /// Example: (i16 (trunc (i32 (load x))) -> i16 load x
----------------
arsenm wrote:

Better comment the ByteOffset argument? 

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


More information about the llvm-commits mailing list