summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-14 18:33:00 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-14 18:33:00 +0000
commitc55dee1c2fc9241a6797ffadfbed765cb925deca (patch)
tree1ab7850d85cf66cc3f6de148cd56b31e1966435f /llvm/tools/bugpoint
parentd863f6f250e0cd459abb3a48ed9227634ed9774b (diff)
downloadbcm5719-llvm-c55dee1c2fc9241a6797ffadfbed765cb925deca.tar.gz
bcm5719-llvm-c55dee1c2fc9241a6797ffadfbed765cb925deca.zip
IR: Set -preserve-bc-uselistorder=false by default
But keep it on by default in `llvm-as`, `opt`, `bugpoint`, `llvm-link`, `llvm-extract`, and `LTOCodeGenerator`. Part of PR5680. llvm-svn: 234921
Diffstat (limited to 'llvm/tools/bugpoint')
-rw-r--r--llvm/tools/bugpoint/bugpoint.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/tools/bugpoint/bugpoint.cpp b/llvm/tools/bugpoint/bugpoint.cpp
index 0ee3784660a..bb790675d75 100644
--- a/llvm/tools/bugpoint/bugpoint.cpp
+++ b/llvm/tools/bugpoint/bugpoint.cpp
@@ -18,6 +18,7 @@
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/IR/LegacyPassNameParser.h"
+#include "llvm/IR/UseListOrder.h"
#include "llvm/LinkAllIR.h"
#include "llvm/LinkAllPasses.h"
#include "llvm/Support/CommandLine.h"
@@ -136,6 +137,10 @@ int main(int argc, char **argv) {
polly::initializePollyPasses(Registry);
#endif
+ // Turn on -preserve-bc-uselistorder by default, but let the command-line
+ // override it.
+ setPreserveBitcodeUseListOrder(true);
+
cl::ParseCommandLineOptions(argc, argv,
"LLVM automatic testcase reducer. See\nhttp://"
"llvm.org/cmds/bugpoint.html"
OpenPOWER on IntegriCloud