[llvm] 8b42e6d - AMDGPU: Remove redundant call to MachineInstrBuilder::setMBB
Nicolai Hähnle via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 05:49:34 PDT 2022
Author: Nicolai Hähnle
Date: 2022-05-03T07:49:20-05:00
New Revision: 8b42e6d057edd3b0cecb47161d10ceea4c49616a
URL: https://github.com/llvm/llvm-project/commit/8b42e6d057edd3b0cecb47161d10ceea4c49616a
DIFF: https://github.com/llvm/llvm-project/commit/8b42e6d057edd3b0cecb47161d10ceea4c49616a.diff
LOG: AMDGPU: Remove redundant call to MachineInstrBuilder::setMBB
setInstrAndDebugLoc also sets the basic block automatically.
Differential Revision: https://reviews.llvm.org/D124809
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp b/llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp
index 805b6c7261666..bfe2e9b66ed4c 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp
@@ -126,7 +126,6 @@ void AMDGPUPreLegalizerCombinerHelper::applyClampI64ToI16(
LLT::scalar(64));
const LLT S32 = LLT::scalar(32);
- B.setMBB(*MI.getParent());
B.setInstrAndDebugLoc(MI);
auto Unmerge = B.buildUnmerge(S32, Src);
More information about the llvm-commits
mailing list