projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ea7de5
)
[AMDGPU] Add new Mode Register pass - minor fix
author
Tim Corringham
<tcorring@amd.com>
Mon, 10 Dec 2018 16:23:30 +0000
(16:23 +0000)
committer
Tim Corringham
<tcorring@amd.com>
Mon, 10 Dec 2018 16:23:30 +0000
(16:23 +0000)
Trivial change to add parentheses to an expression to avoid a
sanitizer error in SIModeRegister.cpp, which was committed earlier.
llvm-svn: 348767
llvm/lib/Target/AMDGPU/SIModeRegister.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/AMDGPU/SIModeRegister.cpp
b/llvm/lib/Target/AMDGPU/SIModeRegister.cpp
index
c4cad95
..
883fd30
100644
(file)
--- a/
llvm/lib/Target/AMDGPU/SIModeRegister.cpp
+++ b/
llvm/lib/Target/AMDGPU/SIModeRegister.cpp
@@
-202,7
+202,7
@@
void SIModeRegister::insertSetreg(MachineBasicBlock &MBB, MachineInstr *MI,
(Offset << AMDGPU::Hwreg::OFFSET_SHIFT_) |
(AMDGPU::Hwreg::ID_MODE << AMDGPU::Hwreg::ID_SHIFT_));
++NumSetregInserted;
- InstrMode.Mask &= ~((
1 << Width) - 1) << Offset
;
+ InstrMode.Mask &= ~((
(1 << Width) - 1) << Offset)
;
}
}