[all-commits] [llvm/llvm-project] 1165a3: [IndexedAccessorRange] Only offset the base if the...

River Riddle via All-commits all-commits at lists.llvm.org
Fri May 1 12:03:20 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1165a35a7312ccd723bbe3e5fe95cd3a3109ec66
      https://github.com/llvm/llvm-project/commit/1165a35a7312ccd723bbe3e5fe95cd3a3109ec66
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2020-05-01 (Fri, 01 May 2020)

  Changed paths:
    M flang/lib/Optimizer/Dialect/FIROps.cpp
    M llvm/include/llvm/ADT/STLExtras.h

  Log Message:
  -----------
  [IndexedAccessorRange] Only offset the base if the index is non-zero.

This is more efficient and removes the need for derived ranges to handle the degenerate empty case.




More information about the All-commits mailing list