Fix case where a pre-inc/dec load/store would not be formed if the
add/sub that forms the inc/dec part of the operation was the first
instruction in the block being examined.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp | ||
---|---|---|
957 ↗ | (On Diff #46572) | No, lines 954, 955 filter out non-register operands, this new check filters out register operands of register 0, which is not a real register. These can show up in dbg_value instructions, which I removed as a special case in the loop below. |
1454 ↗ | (On Diff #46572) | Yep and yep. |
Comment Actions
LGTM once you've addressed the minor nits.
lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp | ||
---|---|---|
957 ↗ | (On Diff #46572) | Ah, the subtle difference between !isReg and !getReg.. Thanks for the clarification. |