[llvm] r314952 - AMDGPU: Add comment about clamps

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 4 17:13:20 PDT 2017


Author: arsenm
Date: Wed Oct  4 17:13:20 2017
New Revision: 314952

URL: http://llvm.org/viewvc/llvm-project?rev=314952&view=rev
Log:
AMDGPU: Add comment about clamps

Modified:
    llvm/trunk/lib/Target/AMDGPU/SIFoldOperands.cpp

Modified: llvm/trunk/lib/Target/AMDGPU/SIFoldOperands.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIFoldOperands.cpp?rev=314952&r1=314951&r2=314952&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIFoldOperands.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIFoldOperands.cpp Wed Oct  4 17:13:20 2017
@@ -723,6 +723,8 @@ void SIFoldOperands::foldInstOperand(Mac
   }
 }
 
+// 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) {




More information about the llvm-commits mailing list