Simon Pilgrim
2804fea615
[DAG] Add SimplifyDemandedBits support for BITREVERSE
...
Pulled out of D58017 while I continue to investigate the BSWAP regression on PPC
llvm-svn: 360534
2019-05-11 20:56:05 +00:00
Matt Arsenault
ab7621bbc3
AMDGPU: Don't use the default cpu in a few tests
...
Avoids unnecessary test changes in a future commit.
llvm-svn: 357539
2019-04-03 00:00:58 +00:00
Simon Pilgrim
663e420f05
[AMDGPU] Regenerate bswap/bitreverse tests.
...
Make codegen changes more obvious in D58017
llvm-svn: 354863
2019-02-26 11:01:08 +00:00
Matt Arsenault
10c80524c6
DAG: Fix not truncating when promoting bswap/bitreverse
...
These need to convert back to the original type, like any
other promotion.
llvm-svn: 323932
2018-01-31 23:54:16 +00:00
Alexander Timofeev
71cf453d98
[AMDGPU] Switch scalarize global loads ON by default
...
Differential revision: https://reviews.llvm.org/D34407
llvm-svn: 307097
2017-07-04 17:32:00 +00:00
NAKAMURA Takumi
e6c7524092
Revert r307026, "[AMDGPU] Switch scalarize global loads ON by default"
...
It broke a testcase.
Failing Tests (1):
LLVM :: CodeGen/AMDGPU/alignbit-pat.ll
llvm-svn: 307054
2017-07-04 02:14:18 +00:00
Alexander Timofeev
ef2bf78d2f
[AMDGPU] Switch scalarize global loads ON by default
...
Differential revision: https://reviews.llvm.org/D34407
llvm-svn: 307026
2017-07-03 14:54:11 +00:00
Matt Arsenault
dd9ab77318
AMDGPU: Mark all unspecified CC functions in tests as amdgpu_kernel
...
Currently the default C calling convention functions are treated
the same as compute kernels. Make this explicit so the default
calling convention can be changed to a non-kernel.
Converted with perl -pi -e 's/define void/define amdgpu_kernel void/'
on the relevant test directories (and undoing in one place that actually
wanted a non-kernel).
llvm-svn: 298444
2017-03-21 21:39:51 +00:00
Matt Arsenault
81a9bfe915
Enable FeatureFlatForGlobal on Volcanic Islands
...
This switches to the workaround that HSA defaults to
for the mesa path.
This should be applied to the 4.0 branch.
Patch by Vedran Miletić <vedran@miletic.net >
llvm-svn: 292982
2017-01-24 22:02:15 +00:00
Tom Stellard
fca8e2011d
AMDGPU: Add VI i16 support
...
Patch By: Wei Ding
Differential Revision: https://reviews.llvm.org/D18049
llvm-svn: 286464
2016-11-10 16:02:37 +00:00
Tom Stellard
8e72cd5271
Revert "AMDGPU: Add VI i16 support"
...
This reverts commit r285939 and r285948. These broke some conformance tests.
llvm-svn: 285995
2016-11-04 13:06:34 +00:00
Tom Stellard
1eb5b9fee5
AMDGPU: Add VI i16 support
...
Patch By: Wei Ding
Differential Revision: https://reviews.llvm.org/D18049
llvm-svn: 285939
2016-11-03 17:13:50 +00:00
Matt Arsenault
9249507611
AMDGPU: Improve splitting 64-bit bit ops by constants
...
This addresses a TODO to handle operations besides and. This
also starts eliminating no-op operations with a constant that
can emerge later.
llvm-svn: 281488
2016-09-14 15:19:03 +00:00
Matt Arsenault
e7de44dc23
AMDGPU: Remove brev intrinsic
...
llvm-svn: 275620
2016-07-15 21:27:13 +00:00
Matt Arsenault
3ca8d64e75
AMDGPU: Use generic bitreverse intrinsic
...
Also fix bug in vector legalization for bitreverse.
llvm-svn: 255512
2015-12-14 17:25:38 +00:00