Commit 9a193bdc authored by Kuter Dinel's avatar Kuter Dinel
Browse files

[Attributor][FIX] AACallEdges, fix propagation error.

This patch fixes a error made in 2cc6f7c8. That patch
added a call site position but there was a small error with the way
the presence of a unknown call edge was being propagated from call site
to function. This patch fixes that error. This error was effecting some
AMDGPU tests.
parent f94a118a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -9472,9 +9472,9 @@ struct AACallEdgesFunction : public AACallEdgesImpl {
      auto &CBEdges = A.getAAFor<AACallEdges>(
          *this, IRPosition::callsite_function(CB), DepClassTy::REQUIRED);
      if (CBEdges.hasNonAsmUnknownCallee())
        setHasUnknownCallee(false, Change);
      if (CBEdges.hasUnknownCallee())
        setHasUnknownCallee(true, Change);
      if (CBEdges.hasUnknownCallee())
        setHasUnknownCallee(false, Change);

      for (Function *F : CBEdges.getOptimisticEdges())
        addCalledFunction(F, Change);