[all-commits] [llvm/llvm-project] 0a6aee: [ValueTracking] Add canCreateUndefOrPoison & let c...

Juneyoung Lee via All-commits all-commits at lists.llvm.org
Sun Jul 19 09:43:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a6aee51608df8502d1d20746d011b3024230c9a
      https://github.com/llvm/llvm-project/commit/0a6aee51608df8502d1d20746d011b3024230c9a
  Author: Juneyoung Lee <aqjune at gmail.com>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/ValueTracking.h
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/lib/Transforms/Instrumentation/PoisonChecking.cpp
    M llvm/unittests/Analysis/ValueTrackingTest.cpp

  Log Message:
  -----------
  [ValueTracking] Add canCreateUndefOrPoison & let canCreatePoison use Operator

This patch
- adds `canCreateUndefOrPoison`
- refactors `canCreatePoison` so it can deal with constantexprs

`canCreateUndefOrPoison` will be used at D83926.

Reviewed By: nikic, jdoerfert

Differential Revision: https://reviews.llvm.org/D84007




More information about the All-commits mailing list