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)
commit2bce3aa5f14c5dc9e4f6571c516e501fd50ef3bd
tree7364992e26c11f73cc50d5a6b4b67f65df61b952
parent08c531db5f74a756fda81dd49c798532ff89f045
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236538 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LivePhysRegs.h
lib/CodeGen/IfConversion.cpp
lib/CodeGen/LivePhysRegs.cpp