summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/shrink-add-sub-constant.ll
Commit message (Collapse)AuthorAgeFilesLines
* AMDGPU: Apply i16 add->sub pattern with zext to i32Matt Arsenault2020-01-071-12/+12
| | | | | This was only applying the deeper nested zext pattern, and missing the special case code size fold.
* AMDGPU: Add baseline test for missing patternMatt Arsenault2020-01-071-0/+583
| | | | | The optimization to turn an add into a sub isn't triggering when the pattern to use the zeroed high bits is used.
* AMDGPU: Treat undef as an inline immediateMatt Arsenault2019-06-201-4/+2
| | | | | | | This should only matter in vectors with an undef component, since a full undef vector would have been folded out. llvm-svn: 363941
* AMDGPU: Undo sub x, c canonicalization for v2i16Matt Arsenault2019-06-191-13/+10
| | | | | | Should avoid regression from D62341 llvm-svn: 363899
* AMDGPU: Add baseline test for vector sub x, c canonicalizationMatt Arsenault2019-06-191-0/+1448
| | | | | | | This will catch regressions from D62341, and show improvements from a future patch to fix them. llvm-svn: 363888
* [AMDGPU] Regenerate add/sub shrink constant tests for an upcoming patchSimon Pilgrim2019-05-311-45/+390
| | | | llvm-svn: 362230
* [AMDGPU][MC][GFX8][GFX9] Corrected names of integer ↵Dmitry Preobrazhensky2017-11-201-10/+10
| | | | | | | | | | | | v_{add/addc/sub/subrev/subb/subbrev} See bug 34765: https://bugs.llvm.org//show_bug.cgi?id=34765 Reviewers: tamazov, SamWot, arsenm, vpykhtin Differential Revision: https://reviews.llvm.org/D40088 llvm-svn: 318675
* AMDGPU: Mark all unspecified CC functions in tests as amdgpu_kernelMatt Arsenault2017-03-211-12/+12
| | | | | | | | | | | | 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
* AMDGPU: Undo sub x, c -> add x, -c canonicalizationMatt Arsenault2017-01-301-0/+186
This is worse if the original constant is an inline immediate. This should also be done for 64-bit adds, but requires fixing operand folding bugs first. llvm-svn: 293540
OpenPOWER on IntegriCloud