[PATCH] D93708: [AMDGPU] Add a new Clamp Pattern to the GlobalISel Path.
Sebastian Neubauer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 23 02:12:40 PST 2020
Flakebi added reviewers: arsenm, foad.
Flakebi added a comment.
Looks good to me, I left some nits inline.
Someone who is more familiar with GlobalISel should review this.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp:1-2
-//=== lib/CodeGen/GlobalISel/AMDGPUPostLegalizerCombiner.cpp ---------------===//
+//=== lib/CodeGen/GlobalISel/AMDGPUPostLegalizerCombiner.cpp
+//---------------===//
//
----------------
Unintended change?
================
Comment at: llvm/test/CodeGen/AMDGPU/GlobalISel/clampi64toi16.ll:3
+; RUN: llc -global-isel -mcpu=gfx900 -mtriple=amdgcn-amd-amdhsa -verify-machineinstrs < %s | FileCheck --check-prefixes=GFX9,GFX6789 %s
+; RUN: llc -global-isel -mcpu=gfx1010 -march=amdgcn -verify-machineinstrs < %s | FileCheck --check-prefix=GCN %s
+
----------------
GFX9 is also a GCN architecture, so calling this GFX10 might be a clearer choice.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93708/new/
https://reviews.llvm.org/D93708
More information about the llvm-commits
mailing list