1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

AMDGPU: Add comment about clamps

llvm-svn: 314952
This commit is contained in:
Matt Arsenault 2017-10-05 00:13:20 +00:00
parent 263f0dbf65
commit d79bc6a3f1

View File

@ -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) {