[all-commits] [llvm/llvm-project] 3747b6: [LoopRotate] Calls not lowered to calls should not...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Jan 19 06:38:11 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3747b69b531299f7a2a0289b8a59ac7234e47d4f
      https://github.com/llvm/llvm-project/commit/3747b69b531299f7a2a0289b8a59ac7234e47d4f
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-01-19 (Tue, 19 Jan 2021)

  Changed paths:
    M llvm/lib/Analysis/CodeMetrics.cpp
    M llvm/test/Transforms/LoopRotate/call-prepare-for-lto.ll

  Log Message:
  -----------
  [LoopRotate] Calls not lowered to calls should not block rotation.

83daa49758a1 made loop-rotate more conservative in the presence of
function calls in the prepare-for-lto stage. The code did not properly
account for calls that are no actual function calls, like calls to
intrinsics. This patch updates the code to ensure only calls that are
lowered to actual calls are considered inline candidates.




More information about the All-commits mailing list