Refactor UpdatePredRedefs and StepForward to avoid duplication. NFC
authorPete Cooper <peter_cooper@apple.com>
Tue, 5 May 2015 20:14:22 +0000 (20:14 +0000)
committerPete Cooper <peter_cooper@apple.com>
Tue, 5 May 2015 20:14:22 +0000 (20:14 +0000)
commit7605e37a63bfb64288af203430246e930967619d
tree565dcaee2be5977c21fe60f70e051764e53e13ee
parent91960900f86ebfe2bf5f48af5363cdef02b5d005
Refactor UpdatePredRedefs and StepForward to avoid duplication.  NFC

Note, this is a reapplication of r236515 with a fix to not assert on non-register operands, but instead only handle them until the subsequent commit.  Original commit message follows.

The code was basically the same here already.  Just added an out parameter for a vector of seen defs so that UpdatePredRedefs can call StepForward first, then do its own post processing on the seen defs.

Will be used in the next commit to also handle regmasks.

llvm-svn: 236538
llvm/include/llvm/CodeGen/LivePhysRegs.h
llvm/lib/CodeGen/IfConversion.cpp
llvm/lib/CodeGen/LivePhysRegs.cpp