[all-commits] [llvm/llvm-project] 2de2d8: [NFC][EntryExitInstrumenter] Mark Dominator Tree a...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Thu Jan 28 14:12:17 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2de2d84ed0b2e7cd27f4de9b98f5f8a38b1e6e57
      https://github.com/llvm/llvm-project/commit/2de2d84ed0b2e7cd27f4de9b98f5f8a38b1e6e57
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp

  Log Message:
  -----------
  [NFC][EntryExitInstrumenter] Mark Dominator Tree as preserved in legacy-PM too

This is correctly handled in new-PM wrappers, but not in old-PM.


  Commit: 394685481c6ff31ab0721f672ff1d13527e8e42a
      https://github.com/llvm/llvm-project/commit/394685481c6ff31ab0721f672ff1d13527e8e42a
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp

  Log Message:
  -----------
  [NFC][PartiallyInlineLibCalls] Port to SplitBlockAndInsertIfThen()

This makes follow-up patch for Dominator Tree preservation
somewhat more straight-forward.


  Commit: 0ea45a412ac6ee40307e2d851eadb045cee460f0
      https://github.com/llvm/llvm-project/commit/0ea45a412ac6ee40307e2d851eadb045cee460f0
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp

  Log Message:
  -----------
  [NFC][ScalarizeMaskedMemIntrin] scalarizeMaskedLoad(): port to SplitBlockAndInsertIfThen()

Makes Dominator Tree preservation in a followup patch somewhat easier.


  Commit: 22b84211565829089c0d372c6ac635fbe060e5fc
      https://github.com/llvm/llvm-project/commit/22b84211565829089c0d372c6ac635fbe060e5fc
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp

  Log Message:
  -----------
  [NFC][ScalarizeMaskedMemIntrin] scalarizeMaskedStore(): port to SplitBlockAndInsertIfThen()

Makes Dominator Tree preservation in a followup patch somewhat easier.


  Commit: 1356399a11e4fd5db88a5974e109eca96cf3328f
      https://github.com/llvm/llvm-project/commit/1356399a11e4fd5db88a5974e109eca96cf3328f
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp

  Log Message:
  -----------
  [NFC][ScalarizeMaskedMemIntrin] scalarizeMaskedGather(): port to SplitBlockAndInsertIfThen()

Makes Dominator Tree preservation in a followup patch somewhat easier.


  Commit: e8efc03a1e835285e044f8d40bc4220378f6fdd1
      https://github.com/llvm/llvm-project/commit/e8efc03a1e835285e044f8d40bc4220378f6fdd1
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp

  Log Message:
  -----------
  [NFC][ScalarizeMaskedMemIntrin] scalarizeMaskedScatter(): port to SplitBlockAndInsertIfThen()

Makes Dominator Tree preservation in a followup patch somewhat easier.


  Commit: 2e4bb3f119eca9603e3f507da5b592b93ae896f7
      https://github.com/llvm/llvm-project/commit/2e4bb3f119eca9603e3f507da5b592b93ae896f7
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp

  Log Message:
  -----------
  [NFC][ScalarizeMaskedMemIntrin] scalarizeMaskedExpandLoad(): port to SplitBlockAndInsertIfThen()

Makes Dominator Tree preservation in a followup patch somewhat easier.


  Commit: 573f74117b1a4a8f17bceccd8abd908eb019c385
      https://github.com/llvm/llvm-project/commit/573f74117b1a4a8f17bceccd8abd908eb019c385
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp

  Log Message:
  -----------
  [NFC][ScalarizeMaskedMemIntrin] scalarizeMaskedCompressStore(): port to SplitBlockAndInsertIfThen()

Makes Dominator Tree preservation in a followup patch somewhat easier.


  Commit: 577fdcaa935b14bde6d51af953093b4b11e1e536
      https://github.com/llvm/llvm-project/commit/577fdcaa935b14bde6d51af953093b4b11e1e536
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp

  Log Message:
  -----------
  [PartiallyInlineLibCalls] Preserve Dominator Tree, if avaliable

This doesn't get rid of any Dominator Tree recalculations just yet,
there is one more pass to update..


  Commit: 056385921d8f31cac573873a073d645d5ddca983
      https://github.com/llvm/llvm-project/commit/056385921d8f31cac573873a073d645d5ddca983
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp
    M llvm/test/CodeGen/ARM/O3-pipeline.ll
    M llvm/test/CodeGen/X86/opt-pipeline.ll

  Log Message:
  -----------
  [ScalarizeMaskedMemIntrin] Preserve Dominator Tree, if avaliable

This de-pessimizes the arguably more usual case of no masked mem intrinsics,
and gets rid of one more Dominator Tree recalculation.

As per llvm/test/CodeGen/X86/opt-pipeline.ll,
there's one more Dominator Tree recalculation left, we could get rid of.


Compare: https://github.com/llvm/llvm-project/compare/f22f4557a749...056385921d8f


More information about the All-commits mailing list