diff options
author | Sanjay Patel <spatel@rotateright.com> | 2015-06-19 23:21:42 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2015-06-19 23:21:42 +0000 |
commit | cfe0393b8269b85e199025b2350277563f43cd29 (patch) | |
tree | eac6265e20022624c34bfa746252c08cea893163 /llvm/lib/CodeGen/MachineCombiner.cpp | |
parent | 18c9dd31de61d8587f98d35bd47f0aceb216ba9f (diff) | |
download | llvm-cfe0393b8269b85e199025b2350277563f43cd29.zip llvm-cfe0393b8269b85e199025b2350277563f43cd29.tar.gz llvm-cfe0393b8269b85e199025b2350277563f43cd29.tar.bz2 |
name change: hasPattern() -> getMachineCombinerPatterns() ; NFC
This was suggested as part of D10460, but it's independent of
any functional change.
llvm-svn: 240192
Diffstat (limited to 'llvm/lib/CodeGen/MachineCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineCombiner.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/MachineCombiner.cpp b/llvm/lib/CodeGen/MachineCombiner.cpp index cc9b1be..5019e8e 100644 --- a/llvm/lib/CodeGen/MachineCombiner.cpp +++ b/llvm/lib/CodeGen/MachineCombiner.cpp @@ -322,7 +322,7 @@ bool MachineCombiner::combineInstructions(MachineBasicBlock *MBB) { auto &MI = *BlockIter++; DEBUG(dbgs() << "INSTR "; MI.dump(); dbgs() << "\n";); - SmallVector<MachineCombinerPattern::MC_PATTERN, 16> Pattern; + SmallVector<MachineCombinerPattern::MC_PATTERN, 16> Patterns; // The motivating example is: // // MUL Other MUL_op1 MUL_op2 Other @@ -345,11 +345,11 @@ bool MachineCombiner::combineInstructions(MachineBasicBlock *MBB) { // // The algorithm does not try to evaluate all patterns and pick the best. // This is only an artificial restriction though. In practice there is - // mostly one pattern and hasPattern() can order patterns based on an - // internal cost heuristic. + // mostly one pattern, and getMachineCombinerPatterns() can order patterns + // based on an internal cost heuristic. - if (TII->hasPattern(MI, Pattern)) { - for (auto P : Pattern) { + if (TII->getMachineCombinerPatterns(MI, Patterns)) { + for (auto P : Patterns) { SmallVector<MachineInstr *, 16> InsInstrs; SmallVector<MachineInstr *, 16> DelInstrs; DenseMap<unsigned, unsigned> InstrIdxForVirtReg; |