summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2017-08-29 21:25:51 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2017-08-29 21:25:51 +0000
commit2d69c924f786ead02f9a857bffe57e66a32a605a (patch)
treef2cf0ed84aa2d06fa4bd7f5b86320c0d3a76ee41 /llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
parent07196d3145b8fd8f4b3d447055f66932face5b2f (diff)
downloadbcm5719-llvm-2d69c924f786ead02f9a857bffe57e66a32a605a.tar.gz
bcm5719-llvm-2d69c924f786ead02f9a857bffe57e66a32a605a.zip
AMDGPU: Fix typo
llvm-svn: 312040
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp b/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
index b7ddfe44c92..bb803b29f6d 100644
--- a/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
+++ b/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
@@ -264,10 +264,11 @@ bool SILoadStoreOptimizer::findMatchingDSInst(CombineInfo &CI) {
// 2. It is safe to move MBBI down past the instruction that I will
// be merged into.
- if (MBBI->hasUnmodeledSideEffects())
+ if (MBBI->hasUnmodeledSideEffects()) {
// We can't re-order this instruction with respect to other memory
- // opeations, so we fail both conditions mentioned above.
+ // operations, so we fail both conditions mentioned above.
return false;
+ }
if (MBBI->mayLoadOrStore() &&
!memAccessesCanBeReordered(*CI.I, *MBBI, TII, AA)) {
OpenPOWER on IntegriCloud