Modifies the selection DAG scheduler to randomize instruction selection to introduce diversity with the goal of increasing security against most return-oriented programming attacks.
Command line options:
-sched-randomize // Enable the schedule randomizer. -sched-randomize-percentage=X // X% of instructions are scheduled randomly (default: 50%, requires -sched-randomize).
This is the clang part of the patch.
LLVM part: D3394