[PATCH] D17356: Fix PR26655: Bail out if all the registers of an instruction in a BUNDLE already have the correct kill flag.

Tim Northover via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 16 13:40:03 PDT 2016

t.p.northover added a comment.

Sorry for messing you around here, but we've just noticed there are functions in MachineInstr that should be able to handle this for you. Specifically addRegisterKilled (make sure AddIfNotFound is false) and clearRegisterKills can replace the inner loop entirely (we think).  They should also handle register aliases, which is probably a good thing.


Tim (after a chat with Matthias).


More information about the llvm-commits mailing list