instcombine does this
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6787
91177308-0d34-0410-b5e6-
96231b3b80d8
//
Passes.add(createGlobalDCEPass());
+ // The FuncResolve pass may leave cruft around if functions were prototyped
+ // differently than they were defined. Remove this cruft.
+ //
+ Passes.add(createInstructionCombiningPass());
+
// Add the pass that writes bytecode to the output file...
std::string RealBytecodeOutput = OutputFilename;
if (!LinkAsLibrary) RealBytecodeOutput += ".bc";