Allow removeLiveIn to be called with a register that isn't live-in.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 28 Mar 2012 20:11:42 +0000 (20:11 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 28 Mar 2012 20:11:42 +0000 (20:11 +0000)
commit78836f0bb2bf5958c1b9f904b0ad0057c77ab75f
treec7a75440d60ebd591692eea8c72ef8e7b0927340
parent89e2b318e2266a7e3fe44151642c1850ec9bd275
Allow removeLiveIn to be called with a register that isn't live-in.

This avoids the silly double search:

  if (isLiveIn(Reg))
    removeLiveIn(Reg);

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153592 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineBasicBlock.cpp