[llvm] 65f486c - AMDGPU: Simplify else if to just else in AMDGPUInstCombineIntrinsic
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 18:47:22 PST 2024
Author: Matt Arsenault
Date: 2024-01-30T08:17:03+05:30
New Revision: 65f486c45d56290655b77711a87f7e4b341b8b6c
URL: https://github.com/llvm/llvm-project/commit/65f486c45d56290655b77711a87f7e4b341b8b6c
DIFF: https://github.com/llvm/llvm-project/commit/65f486c45d56290655b77711a87f7e4b341b8b6c.diff
LOG: AMDGPU: Simplify else if to just else in AMDGPUInstCombineIntrinsic
Fixes #79738
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp b/llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
index 898289019c718..cf1e62151046c 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
@@ -950,7 +950,7 @@ GCNTTIImpl::instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const {
NewWidth = 32;
else if (Width <= 64)
NewWidth = 64;
- else if (Width > 64)
+ else
break; // Can't handle this.
if (Width != NewWidth) {
More information about the llvm-commits
mailing list