[VPlan] Preserve debug location when creating branch.
authorFlorian Hahn <flo@fhahn.com>
Fri, 8 Apr 2022 15:22:38 +0000 (17:22 +0200)
committerFlorian Hahn <flo@fhahn.com>
Fri, 8 Apr 2022 15:22:53 +0000 (17:22 +0200)
commit29fe998eaa38d52d0f764800e17917cff1375598
tree71f3ceae44257fe83471aeb5b425e7e356d1c310
parent547567fe2b3a66e13a9bdc4683f1228889801b75
[VPlan] Preserve debug location when creating branch.

Update createEmptyBasicBlock to preserve the debug location of the
previous terminator.
llvm/lib/Transforms/Vectorize/VPlan.cpp
llvm/test/Transforms/LoopVectorize/debugloc.ll