summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-11-05 19:34:57 +0000
committerSanjay Patel <spatel@rotateright.com>2015-11-05 19:34:57 +0000
commit387e66e79fc368760418f7394a6e93eeeb3f0ec8 (patch)
tree53b9938e83bb8036fbb22192a468605c0c6eac65 /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
parent2cd0d6d625c098be61da7353315efeb356f5f499 (diff)
downloadbcm5719-llvm-387e66e79fc368760418f7394a6e93eeeb3f0ec8.tar.gz
bcm5719-llvm-387e66e79fc368760418f7394a6e93eeeb3f0ec8.zip
replace MachineCombinerPattern namespace and enum with enum class; NFCI
Also, remove an enum hack where enum values were used as indexes into an array. We may want to make this a real class to allow pattern-based queries/customization (D13417). llvm-svn: 252196
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
index ae1b07bcd12..51c85f6ea67 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
@@ -230,7 +230,7 @@ bool PPCInstrInfo::isAssociativeAndCommutative(const MachineInstr &Inst) const {
bool PPCInstrInfo::getMachineCombinerPatterns(
MachineInstr &Root,
- SmallVectorImpl<MachineCombinerPattern::MC_PATTERN> &Patterns) const {
+ SmallVectorImpl<MachineCombinerPattern> &Patterns) const {
// Using the machine combiner in this way is potentially expensive, so
// restrict to when aggressive optimizations are desired.
if (Subtarget.getTargetMachine().getOptLevel() != CodeGenOpt::Aggressive)
OpenPOWER on IntegriCloud