forked from OSchip/llvm-project
6afef286d9
Prior to this patch, the AVR::LDWRdPtr instruction was always lowered to instructions of this pattern: ld $GPR8, [PTR:XYZ]+ ld $GPR8, [PTR]+1 This has a problem; the [PTR] is incremented in-place once, but never decremented. Future uses of the same pointer will use the now clobbered value, leading to the pointer being incorrect by an offset of one. This patch modifies the expansion code of the LDWRdPtr pseudo instruction so that the pointer variable is not silently clobbered in future uses in the same live range. Bug first reported by Keshav Kini. Patch by Kaushik Phatak. llvm-svn: 351673 |
||
---|---|---|
.. | ||
fence.ll | ||
load-store-16-unexpected-register-bug.ll | ||
load8.ll | ||
load16.ll | ||
load32.ll | ||
load64.ll | ||
store.ll | ||
store16.ll | ||
swap.ll |