aboutsummaryrefslogtreecommitdiff
path: root/llvm
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2025-07-27 09:48:58 +0100
committerFlorian Hahn <flo@fhahn.com>2025-07-27 09:48:59 +0100
commitc9a87b45a355d4f60cb6a06099e47a8ccaea7c63 (patch)
tree198dba2da927347433fc5ac20c72de2dbce0e1f8 /llvm
parentbc7487d8ed1e9afcf709492c64359861e61af91d (diff)
downloadllvm-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.cpp2
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)