Matt Arsenault
59ece95f6c
AMDGPU: Fix broken condition in hazard recognizer
...
Fixes bug 32248.
llvm-svn: 298125
2017-03-17 21:36:28 +00:00
Simon Pilgrim
6778b8f715
Reverted unintended commit
...
llvm-svn: 297841
2017-03-15 14:47:30 +00:00
Simon Pilgrim
3804a12fc3
Fix Wint-in-bool-context warning (PR32248)
...
llvm-svn: 297840
2017-03-15 14:38:19 +00:00
Matt Arsenault
e823d92f7f
AMDGPU: Merge initial gfx9 support
...
llvm-svn: 295554
2017-02-18 18:29:53 +00:00
Eugene Zelenko
734bb7bb09
[AMDGPU] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC).
...
llvm-svn: 292623
2017-01-20 17:52:16 +00:00
Matt Arsenault
97279a8ca3
AMDGPU: Rename flat operands to match mubuf
...
Use vaddr/vdst for the same purposes.
This also fixes a beg in SIInsertWaits for the
operand check. The stored value operand is currently called
data0 in the single offset case, not data.
llvm-svn: 288188
2016-11-29 19:30:44 +00:00
Jan Vesely
e8cc395e4f
AMDGPU/GCN: Exit early in hazard recognizer if there is no vreg argument
...
wbinvl.* are vector instruction that do not sue vector registers.
v2: check only M?BUF instructions
Differential Revision: https://reviews.llvm.org/D26633
llvm-svn: 287056
2016-11-15 23:55:15 +00:00
Tom Stellard
aea899e2a0
AMDGPU/SI: Handle hazard with s_rfe_b64
...
Reviewers: arsenm
Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, llvm-commits, tony-tye
Differential Revision: https://reviews.llvm.org/D25638
llvm-svn: 285368
2016-10-27 23:50:21 +00:00
Tom Stellard
04051b5fad
AMDGPU/SI: Handle hazard with sgpr lane selects for v_{read,write}lane
...
Reviewers: arsenm
Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, tony-tye, llvm-commits
Differential Revision: https://reviews.llvm.org/D25637
llvm-svn: 285367
2016-10-27 23:42:29 +00:00
Tom Stellard
6b9c1be4ea
AMDGPU/SI: Fix unused variable warning on non-debug builds
...
llvm-svn: 285363
2016-10-27 23:28:03 +00:00
Tom Stellard
b133fbb9a4
AMDGPU/SI: Handle hazard with > 8 byte VMEM stores
...
Reviewers: arsenm
Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, tony-tye, llvm-commits
Differential Revision: https://reviews.llvm.org/D25577
llvm-svn: 285359
2016-10-27 23:05:31 +00:00
Tom Stellard
30d30824b4
AMDGPU/SI: Handle s_setreg hazard in GCNHazardRecognizer
...
Reviewers: arsenm
Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, llvm-commits, tony-tye
Differential Revision: https://reviews.llvm.org/D25528
llvm-svn: 285338
2016-10-27 20:39:09 +00:00
Tom Stellard
961811c906
AMDGPU/SI: Handle s_getreg hazard in GCNHazardRecognizer
...
Reviewers: arsenm
Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, llvm-commits, tony-tye
Differential Revision: https://reviews.llvm.org/D25526
llvm-svn: 284298
2016-10-15 00:58:14 +00:00
Tom Stellard
5ab6154dc3
AMDGPU/SI: Handle div_fmas hazard in GCNHazardRecognizer
...
Reviewers: arsenm
Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, tony-tye, llvm-commits
Differential Revision: https://reviews.llvm.org/D25250
llvm-svn: 283622
2016-10-07 23:42:48 +00:00
Matt Arsenault
43e92fe306
AMDGPU: Cleanup subtarget handling.
...
Split AMDGPUSubtarget into amdgcn/r600 specific subclasses.
This removes most of the static_casting of the basic codegen
classes everywhere, and tries to restrict the features
visible on the wrong target.
llvm-svn: 273652
2016-06-24 06:30:11 +00:00
Benjamin Kramer
d3f4c05aea
Move instances of std::function.
...
Or replace with llvm::function_ref if it's never stored. NFC intended.
llvm-svn: 272513
2016-06-12 16:13:55 +00:00
Aaron Ballman
3bd56b3b43
Silence unused variable warning; NFC.
...
llvm-svn: 268392
2016-05-03 15:17:25 +00:00
Tom Stellard
1f520e5c98
AMDGPU/SI: Use the hazard recognizer to break SMEM soft clauses
...
Summary:
Add support for detecting hazards in SMEM soft clauses, so that we only
break the clauses when necessary, either by adding s_nop or re-ordering
other alu instructions.
Reviewers: arsenm
Subscribers: arsenm, llvm-commits
Differential Revision: http://reviews.llvm.org/D18870
llvm-svn: 268260
2016-05-02 17:39:06 +00:00
Tom Stellard
a27007eb4f
AMDGPU/SI: Use hazard recognizer to detect DPP hazards
...
Reviewers: arsenm
Subscribers: arsenm, llvm-commits
Differential Revision: http://reviews.llvm.org/D18603
llvm-svn: 268247
2016-05-02 16:23:09 +00:00
Aaron Ballman
5c190d056d
Silence unused variable warnings; NFC.
...
llvm-svn: 268234
2016-05-02 14:48:03 +00:00
Tom Stellard
cb6ba62d6f
AMDGPU/SI: Enable the post-ra scheduler
...
Summary:
This includes a hazard recognizer implementation to replace some of
the hazard handling we had during frame index elimination.
Reviewers: arsenm
Subscribers: qcolombet, arsenm, llvm-commits
Differential Revision: http://reviews.llvm.org/D18602
llvm-svn: 268143
2016-04-30 00:23:06 +00:00