commit | c3cb24d8073a1d32acfb15b025c7f58fe42bddcd | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Thu Feb 07 08:29:53 2008 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Thu Feb 07 08:29:53 2008 +0000 |
tree | 5cf20617d300bafc843214f93e697d084d3c1534 | |
parent | f3df239e202468ec51407cd063c9e99e3486c206 [diff] [blame] |
In some cases, e.g. ADD32ri, no transformation is made. Guide against it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46849 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp index 1253631..18c5d2f 100644 --- a/lib/Target/X86/X86InstrInfo.cpp +++ b/lib/Target/X86/X86InstrInfo.cpp
@@ -1011,6 +1011,8 @@ } } + if (!NewMI) return 0; + NewMI->copyKillDeadInfo(MI); LV.instructionChanged(MI, NewMI); // Update live variables MFI->insert(MBBI, NewMI); // Insert the new inst