[all-commits] [llvm/llvm-project] 424f1f: [AMDGPU][NFC] Refactor hazard recognition IsHazard...

Carl Ritson via All-commits all-commits at lists.llvm.org
Thu Apr 29 17:19:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 424f1f6f96d0e0f14d25b0d1f3e85b85aa6a8249
      https://github.com/llvm/llvm-project/commit/424f1f6f96d0e0f14d25b0d1f3e85b85aa6a8249
  Author: Carl Ritson <carl.ritson at amd.com>
  Date:   2021-04-30 (Fri, 30 Apr 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
    M llvm/lib/Target/AMDGPU/GCNHazardRecognizer.h

  Log Message:
  -----------
  [AMDGPU][NFC] Refactor hazard recognition IsHazardFn and IsExpiredFn

Refactor IsHazardFn and IsExpiredFn to use constant references as these should not be mutating the instructions visited and the instruction can never be null.

Reviewed By: foad

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




More information about the All-commits mailing list