Mehdi Amini
117296c0a0
Use StringRef in Pass/PassManager APIs (NFC)
...
llvm-svn: 283004
2016-10-01 02:56:57 +00:00
Konstantin Zhuravlyov
e14df4b236
[AMDGPU] Promote uniform i16 ops to i32 ops for targets that have 16 bit instructions
...
Differential Revision: https://reviews.llvm.org/D24125
llvm-svn: 282624
2016-09-28 20:05:39 +00:00
Matt Arsenault
e3862cdc93
AMDGPU: Use rcp for fdiv 1, x with fpmath metadata
...
Using rcp should be OK for safe math usually, so this
should not be replacing the original fdiv.
llvm-svn: 276823
2016-07-26 23:25:44 +00:00
Matt Arsenault
a1fe17c9ad
AMDGPU: Change fdiv lowering based on !fpmath metadata
...
If 2.5 ulp is acceptable, denormals are not required, and
isn't a reciprocal which will already be handled, replace
with a faster fdiv.
Simplify the lowering tests by using per function
subtarget features.
llvm-svn: 276051
2016-07-19 23:16:53 +00:00
Matt Arsenault
86de486d31
AMDGPU: Add stub custom CodeGenPrepare pass
...
This will do various things including ones
CodeGenPrepare does, but with knowledge of uniform
values.
llvm-svn: 273657
2016-06-24 07:07:55 +00:00