[all-commits] [llvm/llvm-project] 906e99: [NFC][SCEV] `computeSCEVAtScope()`: deduplicate ha...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Sun Jan 22 06:49:15 PST 2023


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

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

  Log Message:
  -----------
  [NFC][SCEV] `computeSCEVAtScope()`: deduplicate handling

Casts and udiv get the exactly the same handling as n-ary,
there is no point in special-handling anything.


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

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

  Log Message:
  -----------
  [NFC][SCEV] `getLoopDisposition()`: deduplicate handling


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

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

  Log Message:
  -----------
  [NFC][SCEV] `getBlockDisposition()`: deduplicate handling


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

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

  Log Message:
  -----------
  [NFC][SCEV] `getRelevantLoop()`: deduplicate handling


  Commit: 418f780f1f882dbe4f72fcbd3b24b2ce34520557
      https://github.com/llvm/llvm-project/commit/418f780f1f882dbe4f72fcbd3b24b2ce34520557
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2023-01-22 (Sun, 22 Jan 2023)

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

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


  Commit: 3c560dd0ae676e28a2560b1041c9411908e999a5
      https://github.com/llvm/llvm-project/commit/3c560dd0ae676e28a2560b1041c9411908e999a5
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2023-01-22 (Sun, 22 Jan 2023)

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

  Log Message:
  -----------
  [NFC][SCEVExpander] `CmpSelCost`: use the cost of the expression, not operand

Currently, for all invocations, it's equivalent, since that is literally
how `SCEVMinMaxExpr::getType()` is defined. But for e.g. `select`,
we'll want to ask about the hand type, and not the type of the operand
that happens to be first.


Compare: https://github.com/llvm/llvm-project/compare/f42e1e064877...3c560dd0ae67


More information about the All-commits mailing list