[all-commits] [llvm/llvm-project] 58b6c5: [LoopUtils] reorder logic for creating reduction; NFC

RotateRight via All-commits all-commits at lists.llvm.org
Mon Jan 4 13:09:24 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 58b6c5d932a0d435ddfd13f4f5b011207e64297f
      https://github.com/llvm/llvm-project/commit/58b6c5d932a0d435ddfd13f4f5b011207e64297f
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-01-04 (Mon, 04 Jan 2021)

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

  Log Message:
  -----------
  [LoopUtils] reorder logic for creating reduction; NFC

If we are using a shuffle reduction, we don't need to
go through the switch on opcode - return early.


  Commit: 976695752416f6ff51993ec1f3769e8a62eea2f2
      https://github.com/llvm/llvm-project/commit/976695752416f6ff51993ec1f3769e8a62eea2f2
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-01-04 (Mon, 04 Jan 2021)

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

  Log Message:
  -----------
  [LoopUtils] reduce code for creatng reduction; NFC

We can return from each case instead creating a temporary
variable just to have a common return.


Compare: https://github.com/llvm/llvm-project/compare/92be640bd7d4...976695752416


More information about the All-commits mailing list