summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineCopyPropagation.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2017-08-17 02:42:24 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2017-08-17 02:42:24 +0000
commitdd8c16b58e44807b1adade487df5843a6db7baa2 (patch)
treee14aefe4e57fbf853b41f8437641d949d127d021 /llvm/lib/CodeGen/MachineCopyPropagation.cpp
parent2f9743d2eaafdf7a4e56bd833e029a54354168e9 (diff)
downloadbcm5719-llvm-dd8c16b58e44807b1adade487df5843a6db7baa2.tar.gz
bcm5719-llvm-dd8c16b58e44807b1adade487df5843a6db7baa2.zip
ARM: mark CPSR as clobbered for Windows VLAs
When lowering a VLA, we emit a __chstk call. However, this call can internally clobber CPSR. We did not mark this register as an ImpDef, which could potentially allow a comparison to be hoisted above the call to `__chkstk`. In such a case, the CPSR could be clobbered, and the check invalidated. When the support was initially added, it seemed that the call would take care of preventing CPSR from being clobbered, but this is not the case. Mark the register as clobbered to fix a possible state corruption. llvm-svn: 311061
Diffstat (limited to 'llvm/lib/CodeGen/MachineCopyPropagation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud