From ac8ec29c42d4e4c8cc82e9f71ffa16e53197fc84 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 5 Oct 2017 00:13:20 +0000 Subject: [PATCH] AMDGPU: Add comment about clamps git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314952 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AMDGPU/SIFoldOperands.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Target/AMDGPU/SIFoldOperands.cpp b/lib/Target/AMDGPU/SIFoldOperands.cpp index a527afb25da..a7a12cd1015 100644 --- a/lib/Target/AMDGPU/SIFoldOperands.cpp +++ b/lib/Target/AMDGPU/SIFoldOperands.cpp @@ -723,6 +723,8 @@ void SIFoldOperands::foldInstOperand(MachineInstr &MI, } } +// Clamp patterns are canonically selected to v_max_* instructions, so only +// handle them. const MachineOperand *SIFoldOperands::isClamp(const MachineInstr &MI) const { unsigned Op = MI.getOpcode(); switch (Op) { -- 2.40.0