[all-commits] [llvm/llvm-project] 317842: [Attributor][NFCI] Improve the usage of IntegerStates

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Wed Oct 30 23:07:28 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 31784248eee166bb158b9304049bd452dfbfbaeb
      https://github.com/llvm/llvm-project/commit/31784248eee166bb158b9304049bd452dfbfbaeb
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2019-10-31 (Thu, 31 Oct 2019)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/Attributor.h
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/test/Transforms/FunctionAttrs/read_write_returned_arguments_scc.ll

  Log Message:
  -----------
  [Attributor][NFCI] Improve the usage of IntegerStates

Setting the upper bound directly in the state can be beneficial and
simplifies the logic. This also exposed more copy&paste type errors.




More information about the All-commits mailing list