forked from OSchip/llvm-project
parent
07196d3145
commit
2d69c924f7
|
|
@ -264,10 +264,11 @@ bool SILoadStoreOptimizer::findMatchingDSInst(CombineInfo &CI) {
|
||||||
// 2. It is safe to move MBBI down past the instruction that I will
|
// 2. It is safe to move MBBI down past the instruction that I will
|
||||||
// be merged into.
|
// be merged into.
|
||||||
|
|
||||||
if (MBBI->hasUnmodeledSideEffects())
|
if (MBBI->hasUnmodeledSideEffects()) {
|
||||||
// We can't re-order this instruction with respect to other memory
|
// We can't re-order this instruction with respect to other memory
|
||||||
// opeations, so we fail both conditions mentioned above.
|
// operations, so we fail both conditions mentioned above.
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (MBBI->mayLoadOrStore() &&
|
if (MBBI->mayLoadOrStore() &&
|
||||||
!memAccessesCanBeReordered(*CI.I, *MBBI, TII, AA)) {
|
!memAccessesCanBeReordered(*CI.I, *MBBI, TII, AA)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue