diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-09-05 18:37:57 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-09-05 18:37:57 +0000 |
commit | de60e25278b2519dbe61e0fe71b9834813681193 (patch) | |
tree | ec5924a8cee1976b7958e81c6125cb28a9e0133f /llvm/lib/Target/R600/AMDGPUMachineFunction.h | |
parent | d50bb3c8d4cad23d694e8fa96d0e22bf659894d3 (diff) | |
download | bcm5719-llvm-de60e25278b2519dbe61e0fe71b9834813681193.tar.gz bcm5719-llvm-de60e25278b2519dbe61e0fe71b9834813681193.zip |
R600: Fix incorrect LDS size calculation
GlobalAdderss nodes that appeared in more than one basic block were
being counted twice.
llvm-svn: 190078
Diffstat (limited to 'llvm/lib/Target/R600/AMDGPUMachineFunction.h')
-rw-r--r-- | llvm/lib/Target/R600/AMDGPUMachineFunction.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/R600/AMDGPUMachineFunction.h b/llvm/lib/Target/R600/AMDGPUMachineFunction.h index 789b96a8fa0..fe80ce3f015 100644 --- a/llvm/lib/Target/R600/AMDGPUMachineFunction.h +++ b/llvm/lib/Target/R600/AMDGPUMachineFunction.h @@ -14,6 +14,7 @@ #define AMDGPUMACHINEFUNCTION_H #include "llvm/CodeGen/MachineFunction.h" +#include <map> namespace llvm { @@ -21,6 +22,9 @@ class AMDGPUMachineFunction : public MachineFunctionInfo { public: AMDGPUMachineFunction(const MachineFunction &MF); unsigned ShaderType; + /// A map to keep track of local memory objects and their offsets within + /// the local memory space. + std::map<const GlobalValue *, unsigned> LocalMemoryObjects; /// Number of bytes in the LDS that are being used. unsigned LDSSize; }; |