summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-03-02 23:00:21 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2016-03-02 23:00:21 +0000
commit8226fc482999342e899db0d046ad044ba2ada136 (patch)
tree4eef69b7247160e6ff76eb98a6c84b85e6767028 /llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
parent283a215c7a8e185ebdd247ff13d3b79db31070f1 (diff)
downloadbcm5719-llvm-8226fc482999342e899db0d046ad044ba2ada136.tar.gz
bcm5719-llvm-8226fc482999342e899db0d046ad044ba2ada136.zip
AMDGPU: Simplify boolean conditional return statements
Patch by Richard Thomson llvm-svn: 262536
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp b/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
index c8cac805abf..a7e12996e5f 100644
--- a/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
+++ b/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
@@ -125,10 +125,7 @@ static bool canShrink(MachineInstr &MI, const SIInstrInfo *TII,
if (TII->hasModifiersSet(MI, AMDGPU::OpName::omod))
return false;
- if (TII->hasModifiersSet(MI, AMDGPU::OpName::clamp))
- return false;
-
- return true;
+ return !TII->hasModifiersSet(MI, AMDGPU::OpName::clamp);
}
/// \brief This function checks \p MI for operands defined by a move immediate
OpenPOWER on IntegriCloud