projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5157e6
)
R600/SILowerControlFlow.cpp: Fix a warning. [-Wunused-variable]
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Mon, 21 Jan 2013 14:06:48 +0000
(14:06 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Mon, 21 Jan 2013 14:06:48 +0000
(14:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173040
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/R600/SILowerControlFlow.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/R600/SILowerControlFlow.cpp
b/lib/Target/R600/SILowerControlFlow.cpp
index 3780e4051af1c8cface5fa53d89aa51aa0b4fcd5..1b0dbcc45fb3deaf0c0f6be95695da1d05b3dadd 100644
(file)
--- a/
lib/Target/R600/SILowerControlFlow.cpp
+++ b/
lib/Target/R600/SILowerControlFlow.cpp
@@
-291,9
+291,8
@@
void SILowerControlFlowPass::Kill(MachineInstr &MI) {
DebugLoc DL = MI.getDebugLoc();
// Kill is only allowed in pixel shaders
- MachineFunction &MF = *MBB.getParent();
- SIMachineFunctionInfo *Info = MF.getInfo<SIMachineFunctionInfo>();
- assert(Info->ShaderType == ShaderType::PIXEL);
+ assert(MBB.getParent()->getInfo<SIMachineFunctionInfo>()->ShaderType ==
+ ShaderType::PIXEL);
// Clear this pixel from the exec mask if the operand is negative
BuildMI(MBB, &MI, DL, TII->get(AMDGPU::V_CMPX_LE_F32_e32), AMDGPU::VCC)