[all-commits] [llvm/llvm-project] dd6281: [SCEV] Add additional guard tests with swapped con...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Nov 18 01:36:55 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd6281c4c172d7a9571ae8012cdf44d23d818b25
      https://github.com/llvm/llvm-project/commit/dd6281c4c172d7a9571ae8012cdf44d23d818b25
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-11-18 (Thu, 18 Nov 2021)

  Changed paths:
    M llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info.ll
    M llvm/test/Analysis/ScalarEvolution/trip-multiple-guard-info.ll

  Log Message:
  -----------
  [SCEV] Add additional guard tests with swapped condition ops.


  Commit: da9f2ba3b1a6ffddc548ff8da16ca882ef5bb716
      https://github.com/llvm/llvm-project/commit/da9f2ba3b1a6ffddc548ff8da16ca882ef5bb716
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-11-18 (Thu, 18 Nov 2021)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info.ll
    M llvm/test/Analysis/ScalarEvolution/trip-multiple-guard-info.ll

  Log Message:
  -----------
  [SCEV] Reorder operands checks in collectConditions.

The initial two cases require a SCEVConstant as RHS. Pull up the condition
to check and swap SCEVConstants from below. Also remove a redundant
check & swap if RHS is SCEVUnknown.


Compare: https://github.com/llvm/llvm-project/compare/7aa2ce0fab3c...da9f2ba3b1a6


More information about the All-commits mailing list