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/Vectorize/LoopVectorize.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/Vectorize/LoopVectorize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 58b86df1e9f..da9f01a2f59 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -767,7 +767,7 @@ void InnerLoopVectorizer::setDebugLocFromInst(IRBuilder<> &B, const Value *Ptr) const DILocation *DIL = Inst->getDebugLoc(); if (DIL && Inst->getFunction()->isDebugInfoForProfiling() && !isa<DbgInfoIntrinsic>(Inst)) { - auto NewDIL = DIL->cloneWithDuplicationFactor(UF * VF); + auto NewDIL = DIL->cloneByMultiplyingDuplicationFactor(UF * VF); if (NewDIL) B.SetCurrentDebugLocation(NewDIL.getValue()); else |