llvm.org GIT mirror llvm / b253a8b
make sure not to zap volatile stores, thanks a lot to Dale for noticing this! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45402 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
42514251 if (LoadSDNode *Ld = dyn_cast(Value)) {
42524252 if (Chain.Val == Ld && Ld->getBasePtr() == Ptr &&
42534253 ST->getAddressingMode() == ISD::UNINDEXED &&
4254 ST->getStoredVT() == Ld->getLoadedVT()) {
4254 ST->getStoredVT() == Ld->getLoadedVT() &&
4255 !ST->isVolatile()) {
42554256 // The store is dead, remove it.
42564257 return Chain;
42574258 }