//===- CodeGenPrepare.cpp - Prepare a function for code generation --------===////// The LLVM Compiler Infrastructure//// This file is distributed under the University of Illinois Open Source// License. See LICENSE.TXT for details.////===----------------------------------------------------------------------===////// This pass munges the code in the input function to better prepare it for// SelectionDAG-based code generation. This works around limitations in it's// basic-block-at-a-time approach. It should eventually be removed.////===----------------------------------------------------------------------===//#define DEBUG_TYPE "codegenprepare"#include"llvm/Transforms/Scalar.h"#include"llvm/Constants.h"#include"llvm/DerivedTypes.h"#include"llvm/Function.h"#include"llvm/GlobalVariable.h"#include"llvm/IRBuilder.h"#include"llvm/InlineAsm.h"#include"llvm/Instructions.h"#include"llvm/IntrinsicInst.h"#include"llvm/Pass.h"#include"llvm/ADT/DenseMap.h"#include"llvm/ADT/SmallSet.h"#include"llvm/ADT/Statistic.h"#include"llvm/Analysis/Dominators.h"#include"llvm/Analysis/DominatorInternals.h"#include"llvm/Analysis/InstructionSimplify.h"#include"llvm/Analysis/ProfileInfo.h"#include"llvm/Assembly/Writer.h"#include"llvm/Support/CallSite.h"#include"llvm/Support/CommandLine.h"#include"