[all-commits] [llvm/llvm-project] 9b959b: [LVI] Require context instruction in external API ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Sep 27 09:07:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b959b59dfaf87ba978480594d2cfcf15fe66218
      https://github.com/llvm/llvm-project/commit/9b959b59dfaf87ba978480594d2cfcf15fe66218
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-09-27 (Sun, 27 Sep 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/LazyValueInfo.h
    M llvm/lib/Analysis/LazyValueInfo.cpp
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
    M llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
    M llvm/lib/Transforms/Scalar/JumpThreading.cpp
    M llvm/lib/Transforms/Utils/LowerSwitch.cpp

  Log Message:
  -----------
  [LVI] Require context instruction in external API (NFCI)

Require CxtI in getConstant() and getConstantRange() APIs.
Accordingly drop the BB parameter, as it is implied by
CxtI->getParent().

This makes sure we don't forget to pass the context instruction,
and makes the API contract clearer (also clean up the comments to
that effect -- the value holds at the context instruction, not
the end of the block).




More information about the All-commits mailing list