Set mayLoad or mayStore flags for SC and LL in order to prevent LICM from
authorAkira Hatanaka <ahatanak@gmail.com>
Mon, 18 Jul 2011 18:52:12 +0000 (18:52 +0000)
committerAkira Hatanaka <ahatanak@gmail.com>
Mon, 18 Jul 2011 18:52:12 +0000 (18:52 +0000)
commit0d7d0b5cb7e41173b6fff2f0c2fbdcbebc9693fe
treea52b2ced6a229818d967ddf11a16855d362a0879
parent0af0dc8ac6d084bb04cf0188e48eecd6c98903ba
Set mayLoad or mayStore flags for SC and LL in order to prevent LICM from
moving them out of the loop. Previously, stores and loads to a stack frame
object were inserted to accomplish this. Remove the code that was needed to do
this. Patch by Sasa Stankovic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135415 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsISelLowering.cpp
lib/Target/Mips/MipsInstrInfo.td
lib/Target/Mips/MipsMachineFunction.h
test/CodeGen/Mips/atomic.ll