[llvm-commits] [dragonegg] r94891 - /dragonegg/trunk/llvm-backend.cpp

Duncan Sands baldrick at free.fr
Sat Jan 30 06:56:40 PST 2010


Author: baldrick
Date: Sat Jan 30 08:56:39 2010
New Revision: 94891

URL: http://llvm.org/viewvc/llvm-project?rev=94891&view=rev
Log:
Port commits 93625 and 94309 (void) from llvm-gcc:
Make the "-fno-schedule-insns" invoke the "--disable-scheduling" flag in
LLVM. The scheduler is turned off in GCC for many many things. Ignore it when it
turns these things off. We'll let LLVM determine what's the best strategy here.

Change the -disable-schedule flag to the new -pre-RA-sched=source.

Modified:
    dragonegg/trunk/llvm-backend.cpp

Modified: dragonegg/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-backend.cpp?rev=94891&r1=94890&r2=94891&view=diff

==============================================================================
--- dragonegg/trunk/llvm-backend.cpp (original)
+++ dragonegg/trunk/llvm-backend.cpp Sat Jan 30 08:56:39 2010
@@ -363,6 +363,8 @@
 //TODO    Args.push_back("--debug-pass=Arguments");
   if (flag_unwind_tables)
     Args.push_back("--unwind-tables");
+  if (!flag_schedule_insns)
+    Args.push_back("--pre-RA-sched=source");
 
   // If there are options that should be passed through to the LLVM backend
   // directly from the command line, do so now.  This is mainly for debugging





More information about the llvm-commits mailing list