Phil Tomson via llvm-dev
2016-May-27 20:54 UTC
[llvm-dev] How to make -enable-misched the default?
In order for our instruction itineraries to be considered by the instruction scheduler we seem to have to pass -enable-misched to llvm: clang -O3 -mllvm -enable-misched -c some.c ..... If -enable-misched isn't included there it doesn't seem to take our instruction itineraries into account. What's the best way to make '-enable-misched' the default? Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160527/bb049293/attachment.html>
Krzysztof Parzyszek via llvm-dev
2016-May-27 21:29 UTC
[llvm-dev] How to make -enable-misched the default?
Override this function in your subtarget info. include/llvm/Target/TargetSubtargetInfo.h: /// \brief True if the subtarget should run MachineScheduler after aggressive /// coalescing. /// /// This currently replaces the SelectionDAG scheduler with the "source" order /// scheduler (though see below for an option to turn this off and use the /// TargetLowering preference). It does not yet disable the postRA scheduler. virtual bool enableMachineScheduler() const; -Krzysztof On 5/27/2016 3:54 PM, Phil Tomson via llvm-dev wrote:> In order for our instruction itineraries to be considered by the > instruction scheduler we seem to have to pass -enable-misched to llvm: > > clang -O3 -mllvm -enable-misched -c some.c ..... > > If -enable-misched isn't included there it doesn't seem to take our > instruction itineraries into account. > > What's the best way to make '-enable-misched' the default? > > Phil > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Apparently Analagous Threads
- [LLVMdev] how to detect data hazard in pre-RA-sched
- [LLVMdev] how to detect data hazard in pre-RA-sched
- [LLVMdev] [llvm] r190717 - Adds support for Atom Silvermont (SLM) - -march=slm
- How to get started with instruction scheduling? Advice needed.
- scheduler options documentation?