We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2d0597 commit bddc9f8Copy full SHA for bddc9f8
llvm/include/llvm/CodeGen/TargetLowering.h
@@ -1823,6 +1823,8 @@ class TargetLoweringBase {
1823
virtual bool ShouldShrinkFPConstant(EVT) const { return true; }
1824
1825
/// Return true if it is profitable to reduce a load to a smaller type.
1826
+ /// \p ByteOffset is only set if we know the pointer offset at compile time
1827
+ /// otherwise we should assume that additional pointer math is required.
1828
/// Example: (i16 (trunc (i32 (load x))) -> i16 load x
1829
/// Example: (i16 (trunc (srl (i32 (load x)), 16)) -> i16 load x+2
1830
virtual bool shouldReduceLoadWidth(
0 commit comments