[all-commits] [llvm/llvm-project] 0f6c18: [SandboxVec] Replace hard-coded context save() wit...

vporpo via All-commits all-commits at lists.llvm.org
Tue Feb 18 13:35:13 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f6c18e8c65b273af7e7af7ef38f78b4b66c481b
      https://github.com/llvm/llvm-project/commit/0f6c18e8c65b273af7e7af7ef38f78b4b66c481b
  Author: vporpo <vporpodas at google.com>
  Date:   2025-02-18 (Tue, 18 Feb 2025)

  Changed paths:
    A llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/TransactionSave.h
    M llvm/lib/Transforms/Vectorize/CMakeLists.txt
    M llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/PassRegistry.def
    M llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/SeedCollection.cpp
    A llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/TransactionSave.cpp
    M llvm/lib/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizer.cpp
    M llvm/lib/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerPassBuilder.cpp
    M llvm/test/Transforms/SandboxVectorizer/bottomup_basic.ll
    M llvm/test/Transforms/SandboxVectorizer/bottomup_seed_slice.ll
    M llvm/test/Transforms/SandboxVectorizer/bottomup_seed_slice_pow2.ll
    M llvm/test/Transforms/SandboxVectorizer/cross_bbs.ll
    M llvm/test/Transforms/SandboxVectorizer/pack.ll
    M llvm/test/Transforms/SandboxVectorizer/repeated_instrs.ll
    M llvm/test/Transforms/SandboxVectorizer/scheduler.ll
    M llvm/test/Transforms/SandboxVectorizer/special_opcodes.ll

  Log Message:
  -----------
  [SandboxVec] Replace hard-coded context save() with transaction-save pass (#127690)

This patch implements a small region pass that saves the context's
state. The patch is now used in the default pipeline to save the context
state instead of the hard-coded call to Context::save().

The concept behind this is that the passes themselves should not have to
do the actual saving/restoring of the IR state, because that would make
it challenging to reorder them in the pipeline. Having separate
save/restore passes makes the transformation passes more composable as
parts of arbitrary pipelines.



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