diff options
author | Mircea Trofin <mtrofin@google.com> | 2019-01-24 00:10:25 +0000 |
---|---|---|
committer | Mircea Trofin <mtrofin@google.com> | 2019-01-24 00:10:25 +0000 |
commit | ec0263027811f48b907224ede0dd24c33c1c7507 (patch) | |
tree | 3b107b315f5ec4a3e821de78d19375ec2a326622 /llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp | |
parent | d3068a2c2f30cafd42eeaa14f1abeb8771c79c61 (diff) | |
download | bcm5719-llvm-ec0263027811f48b907224ede0dd24c33c1c7507.tar.gz bcm5719-llvm-ec0263027811f48b907224ede0dd24c33c1c7507.zip |
[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/LoopUnrollAndJam.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp b/llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp index c3fc636acd6..d5ccadde3f9 100644 --- a/llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp +++ b/llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp @@ -300,7 +300,7 @@ LoopUnrollResult llvm::UnrollAndJamLoop( 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 |