llvm.org GIT mirror llvm / b679f78
AMDGPU: Preserve value name when inserting mul24 intrinsic git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369857 91177308-0d34-0410-b5e6-96231b3b80d8 Matt Arsenault 23 days ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
514514 }
515515 }
516516
517 I.replaceAllUsesWith(insertValues(Builder, Ty, ResultVals));
517 Value *NewVal = insertValues(Builder, Ty, ResultVals);
518 NewVal->takeName(&I);
519 I.replaceAllUsesWith(NewVal);
518520 I.eraseFromParent();
519521
520522 return true;