summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-06-14 15:05:35 +0000
committerSanjay Patel <spatel@rotateright.com>2019-06-14 15:05:35 +0000
commit7ea378b940b4c4d0690a67679c7d291743e3c8ed (patch)
tree24f13613af45f728418cb0388b3999981ee64cde /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent282d34ee78cd878a8554274c4a08feedb6ac2062 (diff)
downloadbcm5719-llvm-7ea378b940b4c4d0690a67679c7d291743e3c8ed.tar.gz
bcm5719-llvm-7ea378b940b4c4d0690a67679c7d291743e3c8ed.zip
[CodeGenPrepare] propagate debuginfo when copying a shuffle
llvm-svn: 363409
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 797064b68c7..56f6629f5b1 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -6138,6 +6138,7 @@ bool CodeGenPrepare::optimizeShuffleVectorInst(ShuffleVectorInst *SVI) {
InsertedShuffle =
new ShuffleVectorInst(SVI->getOperand(0), SVI->getOperand(1),
SVI->getOperand(2), "", &*InsertPt);
+ InsertedShuffle->setDebugLoc(SVI->getDebugLoc());
}
UI->replaceUsesOfWith(SVI, InsertedShuffle);
OpenPOWER on IntegriCloud