[llvm] r369857 - AMDGPU: Preserve value name when inserting mul24 intrinsic
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 24 15:17:10 PDT 2019
Author: arsenm
Date: Sat Aug 24 15:17:10 2019
New Revision: 369857
URL: http://llvm.org/viewvc/llvm-project?rev=369857&view=rev
Log:
AMDGPU: Preserve value name when inserting mul24 intrinsic
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp?rev=369857&r1=369856&r2=369857&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp Sat Aug 24 15:17:10 2019
@@ -515,7 +515,9 @@ bool AMDGPUCodeGenPrepare::replaceMulWit
}
}
- I.replaceAllUsesWith(insertValues(Builder, Ty, ResultVals));
+ Value *NewVal = insertValues(Builder, Ty, ResultVals);
+ NewVal->takeName(&I);
+ I.replaceAllUsesWith(NewVal);
I.eraseFromParent();
return true;
More information about the llvm-commits
mailing list