A ten-year study following 12,412 middle-aged and older adults (50+) has found that those who died after stroke had more severe memory loss in the years before stroke compared to those who survived stroke and those who didn't have a stroke.
Participants were tested every two years, using a standard word-recall list to measure memory loss (or caregiver assessment for those whose memory loss was too severe). During the decade of the study, 1,027 participants (8.3%) survived a stroke, 499 (4%) died after stroke, and 10,886 (87.7%) remained stroke-free over the study period.
Before having a stroke, those who later survived a stroke had worse average memory than similar individuals who never had a stroke, however their rate of memory decline was similar (0.034 and 0.028 points per year, respectively). Those who later died after a stroke, on the other hand, showed significantly faster memory decline (0.118 points per year).
Whether this is because those who die after stroke have a more compromised brain prior to the stroke, or because greater memory impairment makes people more vulnerable in the wake of a stroke, cannot be told from this data (and indeed, both factors may be involved).
Among survivors, stroke had a significant effect on memory decline, with memory scores dropping an average of 0.157 points at the time of the stroke — an amount equivalent to around 5.6 years of memory decline in similarly-aged stroke-free adults. However, in subsequent years, decline was only a little greater than it had been prior to the stroke (0.038 points per year).
(You can see a nice graph of these points here.)
Wang, Q., Capistrant, B.D., Ehntholt, A. & Glymour, M.M. 2012. Abstract 31: Rate of Change in Memory Functioning Before and After Stroke Onset. Presented at the American Stroke Association's International Stroke Conference 2012. http://stroke.ahajournals.org/cgi/content/meeting_abstract/43/2_MeetingAbstracts/A31?sid=960f2015-06d1-478f-8c03-c00994d35f2c