diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-08-20 20:37:57 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-08-20 20:37:57 +0000 |
commit | cc3f630252c7290e6b093dae7a52c7ec14dee0e5 (patch) | |
tree | 880342e885c3030dc75d297515cb8ac5f8e9595f /llvm/lib/CodeGen/MachinePipeliner.cpp | |
parent | 2077b62a6235491d179f6a48ac79c3a5e6914564 (diff) | |
download | bcm5719-llvm-cc3f630252c7290e6b093dae7a52c7ec14dee0e5.tar.gz bcm5719-llvm-cc3f630252c7290e6b093dae7a52c7ec14dee0e5.zip |
Consistently use MemoryLocation::UnknownSize to indicate unknown access size
1. Change the software pipeliner to use unknown size instead of dropping
memory operands. It used to do it before, but MachineInstr::mayAlias
did not handle it correctly.
2. Recognize UnknownSize in MachineInstr::mayAlias.
3. Print and parse UnknownSize in MIR.
Differential Revision: https://reviews.llvm.org/D50339
llvm-svn: 340208
Diffstat (limited to 'llvm/lib/CodeGen/MachinePipeliner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachinePipeliner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachinePipeliner.cpp b/llvm/lib/CodeGen/MachinePipeliner.cpp index 943a2b42200..c8d2c492b98 100644 --- a/llvm/lib/CodeGen/MachinePipeliner.cpp +++ b/llvm/lib/CodeGen/MachinePipeliner.cpp @@ -3190,8 +3190,8 @@ void SwingSchedulerDAG::updateMemOperands(MachineInstr &NewMI, NewMMOs.push_back( MF.getMachineMemOperand(MMO, AdjOffset, MMO->getSize())); } else { - NewMI.dropMemRefs(MF); - return; + NewMMOs.push_back( + MF.getMachineMemOperand(MMO, 0, MemoryLocation::UnknownSize)); } } NewMI.setMemRefs(MF, NewMMOs); |