mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 01:38:03 +00:00
Fix a really nasty bug that was breaking ijpeg in LLC mode. We were incorrectly
folding load instructions into other instructions across free instruction boundaries. Perhaps this will also fix the other strange failures? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aa7ab53b99
commit
85c84e759e
@ -1422,6 +1422,8 @@ 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:
|
||||
case Instruction::Invoke:
|
||||
|
@ -1422,6 +1422,8 @@ 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:
|
||||
case Instruction::Invoke:
|
||||
|
Loading…
x
Reference in New Issue
Block a user