llvm-project/llvm/lib
Mandeep Singh Grang e5a2f116d6 Fix PR26655: Bail out if all regs of an inst BUNDLE have the correct kill flag
Summary:
While setting kill flags on instructions inside a BUNDLE, we bail out as soon
as we set kill flag on a register.  But we are missing a check when all the
registers already have the correct kill flag set. We need to bail out in that
case as well.

This patch refactors the old code and simply makes use of the addRegisterKilled
function in MachineInstr.cpp in order to determine whether to set/remove kill
on an instruction.

Reviewers: apazos, t.p.northover, pete, MatzeB

Subscribers: MatzeB, davide, llvm-commits

Differential Revision: http://reviews.llvm.org/D17356

llvm-svn: 269092
2016-05-10 17:57:27 +00:00
..
Analysis Revert r269081 and r269082 while I try to find the right incantation to fix MSVC build. 2016-05-10 17:54:43 +00:00
AsmParser Simplify LLParser::ParseOptionalLinkage. NFC. 2016-05-10 17:16:45 +00:00
Bitcode Restore "[ThinLTO] Emit individual index files for distributed backends" 2016-05-10 13:48:23 +00:00
CodeGen Fix PR26655: Bail out if all regs of an inst BUNDLE have the correct kill flag 2016-05-10 17:57:27 +00:00
DebugInfo Fix some Clang-tidy modernize-deprecated-headers and Include What You Use warnings; other minor fixes. 2016-05-09 23:11:38 +00:00
ExecutionEngine [Orc] Rename OrcArchitectureSupport to OrcABISupport and add Win32 ABI support. 2016-05-07 03:36:38 +00:00
Fuzzer [libFuzzer] add a test for libFuzzer+ubsan, extend the docs on using libFuzzer+ubsan 2016-05-09 21:02:36 +00:00
IR Separate the Verifier into an analysis and a transformation pass and 2016-05-09 19:57:29 +00:00
IRReader Remove autoconf support 2016-01-26 21:29:08 +00:00
LTO [ThinLTO] Add option to emit imports files for distributed backends 2016-05-10 15:54:09 +00:00
LibDriver LibDriver: Silently do nothing when provided no inputs. 2016-04-13 19:36:04 +00:00
LineEditor Fix Clang-tidy modernize-deprecated-headers warnings in some files; other minor fixes. 2016-03-28 17:40:08 +00:00
Linker Fix recursive -only-needed. 2016-04-21 14:56:33 +00:00
MC [mips] Correct the ordering of HI/LO pairs in the relocation table. 2016-05-06 13:49:25 +00:00
Object Fix bug where temporary file would be left behind every time an archive was updated. 2016-05-09 13:31:11 +00:00
ObjectYAML [lanai] Add Lanai backend. 2016-03-28 13:09:54 +00:00
Option Option parser: class for consuming a joined arg in addition to all remaining args 2016-04-15 00:23:30 +00:00
Passes Separate the Verifier into an analysis and a transformation pass and 2016-05-09 19:57:29 +00:00
ProfileData [PGO] Use rsplit to parse value-data line in text profile file. 2016-05-06 23:20:58 +00:00
Support [Power9] Add support for -mcpu=pwr9 in the back end 2016-05-09 18:54:58 +00:00
TableGen [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
Target [WebAssembly] Preliminary fast-isel support. 2016-05-10 17:39:48 +00:00
Transforms Revert r269081 and r269082 while I try to find the right incantation to fix MSVC build. 2016-05-10 17:54:43 +00:00
CMakeLists.txt Move ObjectYAML code to a new library. 2016-03-01 19:15:06 +00:00
LLVMBuild.txt Add LLVMBuild for ObjectYAML. 2016-03-01 21:29:33 +00:00