1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

finish a thought.

llvm-svn: 119690
This commit is contained in:
Chris Lattner 2010-11-18 07:32:33 +00:00
parent c3e29a9a68
commit f8540ee386

View File

@ -1831,7 +1831,7 @@ static bool isOnlyCopiedFromConstantGlobal(Value *V, MemTransferInst *&TheCopy,
return false;
// If the transfer is using the alloca as a source of the transfer, then
// it (unless the transfer is volatile).
// ignore it since it is a load (unless the transfer is volatile).
if (UI.getOperandNo() == 1) {
if (MI->isVolatile()) return false;
continue;