Fix PR4926. When target hook EmitInstrWithCustomInserter() insert new basic blocks...
authorEvan Cheng <evan.cheng@apple.com>
Sat, 19 Sep 2009 09:51:03 +0000 (09:51 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 19 Sep 2009 09:51:03 +0000 (09:51 +0000)
commitce31910eae5bd4896fa6c27798e7b26885691d3b
tree724f5ef9adebe214b0b564f1f8153e5d329e0a31
parent83d63919bd990ce00f62e18114504b9e4a5cb35e
Fix PR4926. When target hook EmitInstrWithCustomInserter() insert new basic blocks and update CFG, it should also inform sdisel of the changes so the phi source operands will come from the right basic blocks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82311 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/Alpha/AlphaISelLowering.cpp
lib/Target/MSP430/MSP430ISelLowering.cpp
lib/Target/Mips/MipsISelLowering.cpp
lib/Target/PIC16/PIC16ISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/Sparc/SparcISelLowering.cpp
lib/Target/SystemZ/SystemZISelLowering.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
lib/Target/XCore/XCoreISelLowering.cpp
test/CodeGen/X86/2009-09-19-SchedCustomLoweringBug.ll [new file with mode: 0644]