diff options
Diffstat (limited to 'llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp')
-rw-r--r-- | llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp b/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp index f32165eda1b..f27ad710e0a 100644 --- a/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp +++ b/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp @@ -23,6 +23,7 @@ #include "llvm/Method.h" #include "llvm/iOther.h" #include "llvm/Target/MachineRegInfo.h" +#include <string.h> //******************** Internal Data Declarations ************************/ @@ -252,6 +253,11 @@ void InsertCode4AllPhisInMeth(Method *method, TargetMachine &target) { Value *PhiCpRes = new Value(PN->getType(), PN->getValueType() ); + string *Name = new string("PhiCp:"); + (*Name) += (int) PhiCpRes; + PhiCpRes->setName( *Name ); + + // for each incoming value of the phi, insert phi elimination // for (unsigned i = 0; i < PN->getNumIncomingValues(); ++i) { |