Malloc doesn't kill a load. This patch need not go into 1.2 though.
authorChris Lattner <sabre@nondot.org>
Thu, 18 Mar 2004 17:01:26 +0000 (17:01 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 18 Mar 2004 17:01:26 +0000 (17:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12500 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/InstSelectSimple.cpp
lib/Target/X86/X86ISelSimple.cpp

index e631fdb6ff589100a317677a76db4d9aa3fde075..6ab950459734d45332cb8ec3f3a57516daf1603f 100644 (file)
@@ -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:
index e631fdb6ff589100a317677a76db4d9aa3fde075..6ab950459734d45332cb8ec3f3a57516daf1603f 100644 (file)
@@ -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: