[llvm] a37e958 - AMDGPU: Use correct DebugLoc
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 27 05:49:52 PST 2019
Author: Matt Arsenault
Date: 2019-12-27T08:49:43-05:00
New Revision: a37e958558c0e0e189a677cfd02beb2aa1ac81bb
URL: https://github.com/llvm/llvm-project/commit/a37e958558c0e0e189a677cfd02beb2aa1ac81bb
DIFF: https://github.com/llvm/llvm-project/commit/a37e958558c0e0e189a677cfd02beb2aa1ac81bb.diff
LOG: AMDGPU: Use correct DebugLoc
Added:
Modified:
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
index 041a7622f72e..ed6532e951fa 100644
--- a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
@@ -6580,7 +6580,7 @@ MachineInstr *SIInstrInfo::createPHISourceCopy(
InsPt->getOpcode() == AMDGPU::SI_IF_BREAK) &&
InsPt->definesRegister(Src)) {
InsPt++;
- return BuildMI(MBB, InsPt, InsPt->getDebugLoc(),
+ return BuildMI(MBB, InsPt, DL,
get(ST.isWave32() ? AMDGPU::S_MOV_B32_term
: AMDGPU::S_MOV_B64_term),
Dst)
More information about the llvm-commits
mailing list