mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Malloc doesn't kill a load. This patch need not go into 1.2 though.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12500 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d5fc4fcecf
commit
ab18020cbd
@ -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:
|
||||
|
@ -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
Block a user