[all-commits] [llvm/llvm-project] f96cb6: [ValueTracking] Accept Instruction in isSafeToSpec...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Jul 6 02:13:12 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f96cb66d1931dc09be947502a3f1dccda933cc1b
      https://github.com/llvm/llvm-project/commit/f96cb66d1931dc09be947502a3f1dccda933cc1b
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-07-06 (Wed, 06 Jul 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/ValueTracking.h
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/lib/CodeGen/ExpandVectorPredication.cpp
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp

  Log Message:
  -----------
  [ValueTracking] Accept Instruction in isSafeToSpeculativelyExecute() (NFC)

As constant expressions can no longer trap, it only makes sense to
call isSafeToSpeculativelyExecute on Instructions, so limit the
API to accept only them, rather than general Operators or Values.




More information about the All-commits mailing list