@@ -1711,9 +1711,9 @@ MachineBasicBlock::iterator SILoadStoreOptimizer::mergeFlatStorePair(
1711
1711
return New;
1712
1712
}
1713
1713
1714
- static bool needsConstraintedOpcode (const GCNSubtarget &STM,
1715
- const MachineMemOperand *MMO,
1716
- unsigned Width) {
1714
+ static bool needsConstrainedOpcode (const GCNSubtarget &STM,
1715
+ const MachineMemOperand *MMO,
1716
+ unsigned Width) {
1717
1717
return STM.isXNACKEnabled () && MMO->getAlign ().value () < Width * 4 ;
1718
1718
}
1719
1719
@@ -1736,7 +1736,7 @@ unsigned SILoadStoreOptimizer::getNewOpcode(const CombineInfo &CI,
1736
1736
llvm_unreachable (" Unknown instruction class" );
1737
1737
case S_BUFFER_LOAD_IMM: {
1738
1738
const MachineMemOperand *MMO = *CI.I ->memoperands_begin ();
1739
- bool NeedsConstrainedOpc = needsConstraintedOpcode (*STM, MMO, Width);
1739
+ bool NeedsConstrainedOpc = needsConstrainedOpcode (*STM, MMO, Width);
1740
1740
switch (Width) {
1741
1741
default :
1742
1742
return 0 ;
@@ -1756,7 +1756,7 @@ unsigned SILoadStoreOptimizer::getNewOpcode(const CombineInfo &CI,
1756
1756
}
1757
1757
case S_BUFFER_LOAD_SGPR_IMM: {
1758
1758
const MachineMemOperand *MMO = *CI.I ->memoperands_begin ();
1759
- bool NeedsConstrainedOpc = needsConstraintedOpcode (*STM, MMO, Width);
1759
+ bool NeedsConstrainedOpc = needsConstrainedOpcode (*STM, MMO, Width);
1760
1760
switch (Width) {
1761
1761
default :
1762
1762
return 0 ;
@@ -1778,7 +1778,7 @@ unsigned SILoadStoreOptimizer::getNewOpcode(const CombineInfo &CI,
1778
1778
// If XNACK is enabled, use the constrained opcodes when the first load is
1779
1779
// under-aligned.
1780
1780
const MachineMemOperand *MMO = *CI.I ->memoperands_begin ();
1781
- bool NeedsConstrainedOpc = needsConstraintedOpcode (*STM, MMO, Width);
1781
+ bool NeedsConstrainedOpc = needsConstrainedOpcode (*STM, MMO, Width);
1782
1782
switch (Width) {
1783
1783
default :
1784
1784
return 0 ;
0 commit comments