Refactor UpdatePredRedefs and StepForward to avoid duplication. NFC
authorPete Cooper <peter_cooper@apple.com>
Tue, 5 May 2015 18:31:31 +0000 (18:31 +0000)
committerPete Cooper <peter_cooper@apple.com>
Tue, 5 May 2015 18:31:31 +0000 (18:31 +0000)
commit46356f6f6fb1b67c4f585139527a998a65289ce9
tree9e5a4249a65883d9edff23ea1da10b7cc38028df
parent154cb19e2f25d52b10cf5c5a4dfbab585e5f0bf6
Refactor UpdatePredRedefs and StepForward to avoid duplication.  NFC

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@236514 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LivePhysRegs.h
lib/CodeGen/IfConversion.cpp
lib/CodeGen/LivePhysRegs.cpp