forked from OSchip/llvm-project
Malloc doesn't kill a load. This patch need not go into 1.2 though.
llvm-svn: 12500
This commit is contained in:
parent
0b41ebe65c
commit
6ca9b89abb
|
@ -1422,7 +1422,6 @@ static bool isSafeToFoldLoadIntoInstruction(LoadInst &LI, Instruction &User) {
|
|||
// really use alias analysis here, but for now we just do something simple.
|
||||
for (++It; It != BasicBlock::iterator(&User); ++It) {
|
||||
switch (It->getOpcode()) {
|
||||
case Instruction::Malloc:
|
||||
case Instruction::Free:
|
||||
case Instruction::Store:
|
||||
case Instruction::Call:
|
||||
|
|
Loading…
Reference in New Issue