//===- SimplifyCFG.cpp - Code to perform CFG simplification ---------------===//// // The LLVM Compiler Infrastructure//// This file was developed by the LLVM research group and is distributed under// the University of Illinois Open Source License. See LICENSE.TXT for details.// //===----------------------------------------------------------------------===////// Peephole optimize the CFG.////===----------------------------------------------------------------------===//#define DEBUG_TYPE "simplifycfg"#include"llvm/Transforms/Utils/Local.h"#include"llvm/Constants.h"#include"llvm/Instructions.h"#include"llvm/Type.h"#include"llvm/Support/CFG.h"#include"llvm/Support/Debug.h"#include<algorithm>#include