[all-commits] [llvm/llvm-project] 0cd964: [Attributor][FIX] checkForAllInstructions, correct...

Kuter Dinel via All-commits all-commits at lists.llvm.org
Fri Jul 23 16:23:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0cd964ff254888d563659f4f8f39c934732aa487
      https://github.com/llvm/llvm-project/commit/0cd964ff254888d563659f4f8f39c934732aa487
  Author: Kuter Dinel <kuterdinel at gmail.com>
  Date:   2021-07-24 (Sat, 24 Jul 2021)

  Changed paths:
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/unittests/Transforms/IPO/AttributorTest.cpp

  Log Message:
  -----------
  [Attributor][FIX] checkForAllInstructions, correctly handle declarations

checkForAllInstructions was not handling declarations correctly.
It should have been returning false when it gets called on a declaration

The patch also fixes a test case for AAFunctionReachability for it to be able
to pass after the changes to the checkForAllinstructions.

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




More information about the All-commits mailing list