[all-commits] [llvm/llvm-project] 30b5c3: [Local] Emit nsw for inbounds offset calculation

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Nov 13 09:40:09 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 30b5c3f3a647ce9c5d3d2db5439592f9f00697c7
      https://github.com/llvm/llvm-project/commit/30b5c3f3a647ce9c5d3d2db5439592f9f00697c7
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-11-13 (Fri, 13 Nov 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/Utils/Local.h
    M llvm/test/Transforms/InstCombine/sub-gep.ll
    M llvm/test/Transforms/InstCombine/sub.ll

  Log Message:
  -----------
  [Local] Emit nsw for inbounds offset calculation

In line with D90708, we can use nsw for the inbounds offset
calculation -- the muls were already using nsw, but the adds were
not.




More information about the All-commits mailing list