aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-01-03 18:01:46 +0000
committerDan Gohman <gohman@apple.com>2009-01-03 18:01:46 +0000
commit223942a420cf5b9e888524186134cc652be8a921 (patch)
tree7626094d9ee5b67ea8f2e1b9cdf2e415c96384b7 /include
parent3b3b4e3f0f4e4adb2af74942aa939b283a4d5f16 (diff)
downloadexternal_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.h3
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);