[all-commits] [llvm/llvm-project] 888542: [NFC][SCEV] `computeSCEVAtScope()`: clang-format

Roman Lebedev via All-commits all-commits at lists.llvm.org
Sat Jan 21 12:53:52 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8885420b6df3e964d671afb0993baa8f206939ec
      https://github.com/llvm/llvm-project/commit/8885420b6df3e964d671afb0993baa8f206939ec
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2023-01-21 (Sat, 21 Jan 2023)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp

  Log Message:
  -----------
  [NFC][SCEV] `computeSCEVAtScope()`: clang-format


  Commit: f8eeeffadad33585027a489aaac79ff64d1e3464
      https://github.com/llvm/llvm-project/commit/f8eeeffadad33585027a489aaac79ff64d1e3464
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2023-01-21 (Sat, 21 Jan 2023)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp

  Log Message:
  -----------
  [NFC][SCEV] Reflow `computeSCEVAtScope()` into an exhaustive switch

Otherwise instead of a compile-time error that you forgot to modify it,
you'd get a run-time error, which happened every time i've added new expr.

This is completely NFC, there are no other changes here.


  Commit: 4b4e3fbca96fa149ca54eda1a78c54e45d3ab9e5
      https://github.com/llvm/llvm-project/commit/4b4e3fbca96fa149ca54eda1a78c54e45d3ab9e5
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2023-01-21 (Sat, 21 Jan 2023)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp

  Log Message:
  -----------
  [NFC][SCEV] `computeSCEVAtScope()`: `scUnknown`: use early-returns


  Commit: 898fcfac216e21860d5f687e6cbb61623ff42061
      https://github.com/llvm/llvm-project/commit/898fcfac216e21860d5f687e6cbb61623ff42061
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2023-01-21 (Sat, 21 Jan 2023)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp

  Log Message:
  -----------
  [NFC][SCEV] `computeSCEVAtScope()`: reserve vector size upfront


Compare: https://github.com/llvm/llvm-project/compare/a93cb9302c1a...898fcfac216e


More information about the All-commits mailing list