[Mesa-dev] [PATCH 2/2] radeon/llvm: add fsqrt pattern for r600/r700
Vincent Lejeune
vljn at ovi.com
Tue Nov 27 14:10:59 PST 2012
---
lib/Target/AMDGPU/R600Instructions.td | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/Target/AMDGPU/R600Instructions.td b/lib/Target/AMDGPU/R600Instructions.td
index 1b9d462..a8be1a3 100644
--- a/lib/Target/AMDGPU/R600Instructions.td
+++ b/lib/Target/AMDGPU/R600Instructions.td
@@ -992,6 +992,9 @@ let Predicates = [isR600] in {
let Inst{63} = 1; // BARRIER
}
+ def : Pat<(fsqrt R600_Reg32:$src),
+ (MUL R600_Reg32:$src, (RECIPSQRT_CLAMPED_r600 R600_Reg32:$src))>;
+
defm : ExportPattern<R600_Export, 39>;
}
--
1.8.0
More information about the mesa-dev
mailing list