[all-commits] [llvm/llvm-project] 175461: [NFC][LoopVectorize] Make replaceVPBBWithIRVPBB mo...

David Sherwood via All-commits all-commits at lists.llvm.org
Tue Oct 15 06:12:16 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 175461a22a72d3407aac5482f1d602dd3e6cb753
      https://github.com/llvm/llvm-project/commit/175461a22a72d3407aac5482f1d602dd3e6cb753
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2024-10-15 (Tue, 15 Oct 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlan.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.h

  Log Message:
  -----------
  [NFC][LoopVectorize] Make replaceVPBBWithIRVPBB more efficient (#111514)

In replaceVPBBWithIRVPBB we spend time erasing and appending
predecessors and successors from a list, when all we really have to do
is replace the old with the new. Not only is this more efficient, but it
also preserves the ordering of successors and predecessors. This is
something which may become important for vectorising early exit loops
(see PR #88385), since a VPIRInstruction is the wrapper for a live-out
phi with extra operands that map to the incoming block according to the
block's predecessor.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list