|
@@ -22,34 +22,34 @@
|
|
#define DEBUG_TYPE "scalarrepl"
|
|
#define DEBUG_TYPE "scalarrepl"
|
|
#include "llvm/Transforms/Scalar.h"
|
|
#include "llvm/Transforms/Scalar.h"
|
|
#include "llvm/Constants.h"
|
|
#include "llvm/Constants.h"
|
|
|
|
+#include "llvm/DIBuilder.h"
|
|
#include "llvm/DebugInfo.h"
|
|
#include "llvm/DebugInfo.h"
|
|
#include "llvm/DerivedTypes.h"
|
|
#include "llvm/DerivedTypes.h"
|
|
-#include "llvm/DIBuilder.h"
|
|
|
|
#include "llvm/Function.h"
|
|
#include "llvm/Function.h"
|
|
#include "llvm/GlobalVariable.h"
|
|
#include "llvm/GlobalVariable.h"
|
|
|
|
+#include "llvm/IRBuilder.h"
|
|
#include "llvm/Instructions.h"
|
|
#include "llvm/Instructions.h"
|
|
#include "llvm/IntrinsicInst.h"
|
|
#include "llvm/IntrinsicInst.h"
|
|
#include "llvm/LLVMContext.h"
|
|
#include "llvm/LLVMContext.h"
|
|
#include "llvm/Module.h"
|
|
#include "llvm/Module.h"
|
|
#include "llvm/Operator.h"
|
|
#include "llvm/Operator.h"
|
|
#include "llvm/Pass.h"
|
|
#include "llvm/Pass.h"
|
|
|
|
+#include "llvm/ADT/SetVector.h"
|
|
|
|
+#include "llvm/ADT/SmallVector.h"
|
|
|
|
+#include "llvm/ADT/Statistic.h"
|
|
#include "llvm/Analysis/Dominators.h"
|
|
#include "llvm/Analysis/Dominators.h"
|
|
#include "llvm/Analysis/Loads.h"
|
|
#include "llvm/Analysis/Loads.h"
|
|
#include "llvm/Analysis/ValueTracking.h"
|
|
#include "llvm/Analysis/ValueTracking.h"
|
|
-#include "llvm/Target/TargetData.h"
|
|
|
|
-#include "llvm/Transforms/Utils/PromoteMemToReg.h"
|
|
|
|
-#include "llvm/Transforms/Utils/Local.h"
|
|
|
|
-#include "llvm/Transforms/Utils/SSAUpdater.h"
|
|
|
|
#include "llvm/Support/CallSite.h"
|
|
#include "llvm/Support/CallSite.h"
|
|
#include "llvm/Support/Debug.h"
|
|
#include "llvm/Support/Debug.h"
|
|
#include "llvm/Support/ErrorHandling.h"
|
|
#include "llvm/Support/ErrorHandling.h"
|
|
#include "llvm/Support/GetElementPtrTypeIterator.h"
|
|
#include "llvm/Support/GetElementPtrTypeIterator.h"
|
|
-#include "llvm/Support/IRBuilder.h"
|
|
|
|
#include "llvm/Support/MathExtras.h"
|
|
#include "llvm/Support/MathExtras.h"
|
|
#include "llvm/Support/raw_ostream.h"
|
|
#include "llvm/Support/raw_ostream.h"
|
|
-#include "llvm/ADT/SetVector.h"
|
|
|
|
-#include "llvm/ADT/SmallVector.h"
|
|
|
|
-#include "llvm/ADT/Statistic.h"
|
|
|
|
|
|
+#include "llvm/Target/TargetData.h"
|
|
|
|
+#include "llvm/Transforms/Utils/Local.h"
|
|
|
|
+#include "llvm/Transforms/Utils/PromoteMemToReg.h"
|
|
|
|
+#include "llvm/Transforms/Utils/SSAUpdater.h"
|
|
using namespace llvm;
|
|
using namespace llvm;
|
|
|
|
|
|
STATISTIC(NumReplaced, "Number of allocas broken up");
|
|
STATISTIC(NumReplaced, "Number of allocas broken up");
|