[all-commits] [llvm/llvm-project] b78f3e: Clean up strange uses of getAnalysisIfAvailable (#...

Jay Foad via All-commits all-commits at lists.llvm.org
Wed Oct 11 01:53:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b78f3ea7df3c5ed9410a18ad9dd80cbb875364fc
      https://github.com/llvm/llvm-project/commit/b78f3ea7df3c5ed9410a18ad9dd80cbb875364fc
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2023-10-11 (Wed, 11 Oct 2023)

  Changed paths:
    M llvm/lib/CodeGen/EarlyIfConversion.cpp
    M llvm/lib/CodeGen/TypePromotion.cpp
    M llvm/lib/CodeGen/VirtRegMap.cpp
    M llvm/lib/Target/AArch64/AArch64ConditionalCompares.cpp
    M llvm/lib/Transforms/Scalar/GVN.cpp

  Log Message:
  -----------
  Clean up strange uses of getAnalysisIfAvailable (#65729)

After a pass calls addRequired<X>() it is strange to call
getAnalysisIfAvailable<X>() because analysis X should always be
available. Use getAnalysis<X>() instead.




More information about the All-commits mailing list