aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUnroll.cpp
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2019-01-24 00:10:25 +0000
committerMircea Trofin <mtrofin@google.com>2019-01-24 00:10:25 +0000
commitec0263027811f48b907224ede0dd24c33c1c7507 (patch)
tree3b107b315f5ec4a3e821de78d19375ec2a326622 /llvm/lib/Transforms/Utils/LoopUnroll.cpp
parentd3068a2c2f30cafd42eeaa14f1abeb8771c79c61 (diff)
downloadllvm-ec0263027811f48b907224ede0dd24c33c1c7507.zip
llvm-ec0263027811f48b907224ede0dd24c33c1c7507.tar.gz
llvm-ec0263027811f48b907224ede0dd24c33c1c7507.tar.bz2
[llvm] Clarify responsiblity of some of DILocation discriminator APIs
Summary: Renamed setBaseDiscriminator to cloneWithBaseDiscriminator, to match similar APIs. Also changed its behavior to copy over the other discriminator components, instead of eliding them. Renamed cloneWithDuplicationFactor to cloneByMultiplyingDuplicationFactor, which more closely matches what this API does. Reviewers: dblaikie, wmi Reviewed By: dblaikie Subscribers: zzheng, llvm-commits Differential Revision: https://reviews.llvm.org/D56220 llvm-svn: 351996
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnroll.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUnroll.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnroll.cpp b/llvm/lib/Transforms/Utils/LoopUnroll.cpp
index a2f1a79a..0d62a81 100644
--- a/llvm/lib/Transforms/Utils/LoopUnroll.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUnroll.cpp
@@ -598,7 +598,7 @@ LoopUnrollResult llvm::UnrollLoop(
for (Instruction &I : *BB)
if (!isa<DbgInfoIntrinsic>(&I))
if (const DILocation *DIL = I.getDebugLoc()) {
- auto NewDIL = DIL->cloneWithDuplicationFactor(Count);
+ auto NewDIL = DIL->cloneByMultiplyingDuplicationFactor(Count);
if (NewDIL)
I.setDebugLoc(NewDIL.getValue());
else