Merging:
- $x26, $x25 = frame-setup LDPXi $sp, 0
- $sp = frame-destroy ADDXri $sp, 64, 0
into an LDPXpost should preserve the flags from both instructions as following:
- frame-setup frame-destroy LDPXpost
Paths
| Differential D44446
[AArch64] Keep track of MIFlags in the LoadStoreOptimizer ClosedPublic Authored by thegameg on Mar 13 2018, 1:09 PM.
Details Summary Merging:
into an LDPXpost should preserve the flags from both instructions as following:
Diff Detail Event TimelineHerald added subscribers: kristof.beyls, javed.absar, rengolin. · View Herald TranscriptMar 13 2018, 1:09 PM thegameg marked an inline comment as done. Comment Actions Should we do this only in mergeUpdateInsn? What about other merges like mergePairedInsns ? This revision is now accepted and ready to land.Mar 14 2018, 10:07 AM Closed by commit rL327533: [AArch64] Keep track of MIFlags in the LoadStoreOptimizer (authored by thegameg). · Explain WhyMar 14 2018, 10:14 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 138374 include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/MachineInstr.cpp
lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
test/CodeGen/AArch64/ldst-miflags.mir
|
It would be good to have one more test case for non-pair case like LDRXui.