diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2014-01-23 16:18:02 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2014-01-23 16:18:02 +0000 |
commit | 7d3b9d96b6405c1a0b6d1ae73d5a4a1d506d500d (patch) | |
tree | 6b2c2f1ebc797eca2bc9921c0ac47e59d83568bd /lib/Target/R600/AMDGPUSubtarget.h | |
parent | 03b94a460d9cfd86e438cd88596d93c63fc3c3e0 (diff) | |
download | llvm-7d3b9d96b6405c1a0b6d1ae73d5a4a1d506d500d.tar.gz llvm-7d3b9d96b6405c1a0b6d1ae73d5a4a1d506d500d.tar.bz2 llvm-7d3b9d96b6405c1a0b6d1ae73d5a4a1d506d500d.tar.xz |
R600: Recommit 199842: Add work-around for the CF stack entry HW bug
The unit test is now disabled on non-asserts builds.
The CF stack can be corrupted if you use CF_ALU_PUSH_BEFORE,
CF_ALU_ELSE_AFTER, CF_ALU_BREAK, or CF_ALU_CONTINUE when the number of
sub-entries on the stack is greater than or equal to the stack entry
size and sub-entries modulo 4 is either 0 or 3 (on cedar the bug is
present when number of sub-entries module 8 is either 7 or 0)
We choose to be conservative and always apply the work-around when the
number of sub-enries is greater than or equal to the stack entry size,
so that we can safely over-allocate the stack when we are unsure of the
stack allocation rules.
reviewed-by: Vincent Lejeune <vljn at ovi.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/AMDGPUSubtarget.h')
-rw-r--r-- | lib/Target/R600/AMDGPUSubtarget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/R600/AMDGPUSubtarget.h b/lib/Target/R600/AMDGPUSubtarget.h index 68d853218b..7e7f4d0c00 100644 --- a/lib/Target/R600/AMDGPUSubtarget.h +++ b/lib/Target/R600/AMDGPUSubtarget.h @@ -52,6 +52,7 @@ private: bool EnableIRStructurizer; bool EnableIfCvt; unsigned WavefrontSize; + bool CFALUBug; InstrItineraryData InstrItins; @@ -71,6 +72,7 @@ public: bool isIfCvtEnabled() const; unsigned getWavefrontSize() const; unsigned getStackEntrySize() const; + bool hasCFAluBug() const; virtual bool enableMachineScheduler() const { return getGeneration() <= NORTHERN_ISLANDS; |