Skip to content

Commit dc09815

Browse files
committed
[AMDGPU] Remove redundand check in the SILoadStoreOptimizer
Differential Revision: https://reviews.llvm.org/D120268
1 parent f7dfc5d commit dc09815

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,7 @@ bool SILoadStoreOptimizer::offsetsCanBeCombined(CombineInfo &CI,
747747
if ((CI.InstClass != DS_READ) && (CI.InstClass != DS_WRITE)) {
748748
return (EltOffset0 + CI.Width == EltOffset1 ||
749749
EltOffset1 + Paired.Width == EltOffset0) &&
750-
CI.CPol == Paired.CPol &&
751-
(CI.InstClass == S_BUFFER_LOAD_IMM || CI.CPol == Paired.CPol);
750+
CI.CPol == Paired.CPol;
752751
}
753752

754753
// If the offset in elements doesn't fit in 8-bits, we might be able to use

0 commit comments

Comments
 (0)