diff options
author | Florian Hahn <flo@fhahn.com> | 2025-07-27 09:48:58 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2025-07-27 09:48:59 +0100 |
commit | c9a87b45a355d4f60cb6a06099e47a8ccaea7c63 (patch) | |
tree | 198dba2da927347433fc5ac20c72de2dbce0e1f8 /llvm | |
parent | bc7487d8ed1e9afcf709492c64359861e61af91d (diff) | |
download | llvm-c9a87b45a355d4f60cb6a06099e47a8ccaea7c63.zip llvm-c9a87b45a355d4f60cb6a06099e47a8ccaea7c63.tar.gz llvm-c9a87b45a355d4f60cb6a06099e47a8ccaea7c63.tar.bz2 |
[VPlan] Retrieve latch terminator from VPlan. (NFC)
Remove an unnecessary lookup via original IR loop.
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp b/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp index 6e566e4..5fac2a8 100644 --- a/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp +++ b/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp @@ -566,7 +566,7 @@ void VPlanTransforms::prepareForVectorization( // the corresponding compare because they may have ended up with different // line numbers and we want to avoid awkward line stepping while debugging. // E.g., if the compare has got a line number inside the loop. - DebugLoc LatchDL = TheLoop->getLoopLatch()->getTerminator()->getDebugLoc(); + DebugLoc LatchDL = LatchVPBB->getTerminator()->getDebugLoc(); VPBuilder Builder(MiddleVPBB); VPValue *Cmp; if (!RequiresScalarEpilogueCheck) |