diff options
author | Dan Gohman <gohman@apple.com> | 2009-01-03 18:01:46 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-01-03 18:01:46 +0000 |
commit | 223942a420cf5b9e888524186134cc652be8a921 (patch) | |
tree | 7626094d9ee5b67ea8f2e1b9cdf2e415c96384b7 /include | |
parent | 3b3b4e3f0f4e4adb2af74942aa939b283a4d5f16 (diff) | |
download | external_llvm-223942a420cf5b9e888524186134cc652be8a921.zip external_llvm-223942a420cf5b9e888524186134cc652be8a921.tar.gz external_llvm-223942a420cf5b9e888524186134cc652be8a921.tar.bz2 |
Remove the code from the scheduler that commuted two-address
instructions to avoid copies, because TwoAddressInstructionPass
also does this optimization. The scheduler's version didn't
account for live-out values, which resulted in spurious commutes
and missed opportunities.
Now, TwoAddressInstructionPass handles all the opportunities,
instead of just those that the scheduler missed. The result is
usually the same, though there are occasional trivial differences
resulting from the avoidance of spurious commutes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61611 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/ScheduleDAGSDNodes.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/ScheduleDAGSDNodes.h b/include/llvm/CodeGen/ScheduleDAGSDNodes.h index b9c6428..2c3f097 100644 --- a/include/llvm/CodeGen/ScheduleDAGSDNodes.h +++ b/include/llvm/CodeGen/ScheduleDAGSDNodes.h @@ -17,7 +17,6 @@ #include "llvm/CodeGen/ScheduleDAG.h" #include "llvm/CodeGen/SelectionDAG.h" -#include "llvm/ADT/SmallSet.h" namespace llvm { /// HazardRecognizer - This determines whether or not an instruction can be @@ -75,8 +74,6 @@ namespace llvm { /// class ScheduleDAGSDNodes : public ScheduleDAG { public: - SmallSet<SDNode*, 16> CommuteSet; // Nodes that should be commuted. - ScheduleDAGSDNodes(SelectionDAG *dag, MachineBasicBlock *bb, const TargetMachine &tm); |