blob: 04fa35815b639f81358ebac894f2a0a5c41dfd3f [file] [log] [blame]
Hal Finkel089b8ec2015-02-01 21:51:22 +00001//===--------------- PPCVSXFMAMutate.cpp - VSX FMA Mutation ---------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This pass mutates the form of VSX FMA instructions to avoid unnecessary
11// copies.
12//
13//===----------------------------------------------------------------------===//
14
Hal Finkel089b8ec2015-02-01 21:51:22 +000015#include "MCTargetDesc/PPCPredicates.h"
16#include "PPC.h"
17#include "PPCInstrBuilder.h"
Chandler Carruth6bda14b2017-06-06 11:49:48 +000018#include "PPCInstrInfo.h"
Hal Finkel089b8ec2015-02-01 21:51:22 +000019#include "PPCMachineFunctionInfo.h"
20#include "PPCTargetMachine.h"
21#include "llvm/ADT/STLExtras.h"
22#include "llvm/ADT/Statistic.h"
Matthias Braunf8422972017-12-13 02:51:04 +000023#include "llvm/CodeGen/LiveIntervals.h"
Krzysztof Parzyszek31095d22016-11-30 13:31:09 +000024#include "llvm/CodeGen/MachineDominators.h"
Hal Finkel089b8ec2015-02-01 21:51:22 +000025#include "llvm/CodeGen/MachineFrameInfo.h"
26#include "llvm/CodeGen/MachineFunctionPass.h"
27#include "llvm/CodeGen/MachineInstrBuilder.h"
28#include "llvm/CodeGen/MachineMemOperand.h"
29#include "llvm/CodeGen/MachineRegisterInfo.h"
30#include "llvm/CodeGen/PseudoSourceValue.h"
31#include "llvm/CodeGen/ScheduleDAG.h"
32#include "llvm/CodeGen/SlotIndexes.h"
Hal Finkel089b8ec2015-02-01 21:51:22 +000033#include "llvm/MC/MCAsmInfo.h"
34#include "llvm/Support/CommandLine.h"
35#include "llvm/Support/Debug.h"
36#include "llvm/Support/ErrorHandling.h"
37#include "llvm/Support/TargetRegistry.h"
38#include "llvm/Support/raw_ostream.h"
39
40using namespace llvm;
41
Tim Shen6e676a82016-03-03 01:27:35 +000042// Temporarily disable FMA mutation by default, since it doesn't handle
43// cross-basic-block intervals well.
44// See: http://lists.llvm.org/pipermail/llvm-dev/2016-February/095669.html
45// http://reviews.llvm.org/D17087
46static cl::opt<bool> DisableVSXFMAMutate(
47 "disable-ppc-vsx-fma-mutation",
48 cl::desc("Disable VSX FMA instruction mutation"), cl::init(true),
49 cl::Hidden);
Hal Finkel089b8ec2015-02-01 21:51:22 +000050
51#define DEBUG_TYPE "ppc-vsx-fma-mutate"
52
53namespace llvm { namespace PPC {
54 int getAltVSXFMAOpcode(uint16_t Opcode);
55} }
56
57namespace {
58 // PPCVSXFMAMutate pass - For copies between VSX registers and non-VSX registers
59 // (Altivec and scalar floating-point registers), we need to transform the
60 // copies into subregister copies with other restrictions.
61 struct PPCVSXFMAMutate : public MachineFunctionPass {
62 static char ID;
63 PPCVSXFMAMutate() : MachineFunctionPass(ID) {
64 initializePPCVSXFMAMutatePass(*PassRegistry::getPassRegistry());
65 }
66
67 LiveIntervals *LIS;
68 const PPCInstrInfo *TII;
69
70protected:
71 bool processBlock(MachineBasicBlock &MBB) {
72 bool Changed = false;
73
74 MachineRegisterInfo &MRI = MBB.getParent()->getRegInfo();
75 const TargetRegisterInfo *TRI = &TII->getRegisterInfo();
76 for (MachineBasicBlock::iterator I = MBB.begin(), IE = MBB.end();
77 I != IE; ++I) {
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +000078 MachineInstr &MI = *I;
Hal Finkel089b8ec2015-02-01 21:51:22 +000079
80 // The default (A-type) VSX FMA form kills the addend (it is taken from
81 // the target register, which is then updated to reflect the result of
82 // the FMA). If the instruction, however, kills one of the registers
83 // used for the product, then we can use the M-form instruction (which
84 // will take that value from the to-be-defined register).
85
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +000086 int AltOpc = PPC::getAltVSXFMAOpcode(MI.getOpcode());
Hal Finkel089b8ec2015-02-01 21:51:22 +000087 if (AltOpc == -1)
88 continue;
89
90 // This pass is run after register coalescing, and so we're looking for
91 // a situation like this:
92 // ...
Francis Visoiu Mistriha8a83d12017-12-07 10:40:31 +000093 // %5 = COPY %9; VSLRC:%5,%9
Francis Visoiu Mistrih93ef1452017-11-30 12:12:19 +000094 // %5<def,tied1> = XSMADDADP %5<tied0>, %17, %16,
Francis Visoiu Mistriha8a83d12017-12-07 10:40:31 +000095 // implicit %rm; VSLRC:%5,%17,%16
Hal Finkel089b8ec2015-02-01 21:51:22 +000096 // ...
Francis Visoiu Mistrih93ef1452017-11-30 12:12:19 +000097 // %9<def,tied1> = XSMADDADP %9<tied0>, %17, %19,
Francis Visoiu Mistriha8a83d12017-12-07 10:40:31 +000098 // implicit %rm; VSLRC:%9,%17,%19
Hal Finkel089b8ec2015-02-01 21:51:22 +000099 // ...
100 // Where we can eliminate the copy by changing from the A-type to the
101 // M-type instruction. Specifically, for this example, this means:
Francis Visoiu Mistrih93ef1452017-11-30 12:12:19 +0000102 // %5<def,tied1> = XSMADDADP %5<tied0>, %17, %16,
Francis Visoiu Mistriha8a83d12017-12-07 10:40:31 +0000103 // implicit %rm; VSLRC:%5,%17,%16
Hal Finkel089b8ec2015-02-01 21:51:22 +0000104 // is replaced by:
Francis Visoiu Mistrih93ef1452017-11-30 12:12:19 +0000105 // %16<def,tied1> = XSMADDMDP %16<tied0>, %18, %9,
Francis Visoiu Mistriha8a83d12017-12-07 10:40:31 +0000106 // implicit %rm; VSLRC:%16,%18,%9
107 // and we remove: %5 = COPY %9; VSLRC:%5,%9
Hal Finkel089b8ec2015-02-01 21:51:22 +0000108
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000109 SlotIndex FMAIdx = LIS->getInstructionIndex(MI);
Hal Finkel089b8ec2015-02-01 21:51:22 +0000110
111 VNInfo *AddendValNo =
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000112 LIS->getInterval(MI.getOperand(1).getReg()).Query(FMAIdx).valueIn();
Hal Finkel7ffe55a2015-08-26 23:41:53 +0000113
114 // This can be null if the register is undef.
115 if (!AddendValNo)
Hal Finkelff9639d2015-08-21 21:34:24 +0000116 continue;
Hal Finkelff9639d2015-08-21 21:34:24 +0000117
Hal Finkel089b8ec2015-02-01 21:51:22 +0000118 MachineInstr *AddendMI = LIS->getInstructionFromIndex(AddendValNo->def);
119
120 // The addend and this instruction must be in the same block.
121
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000122 if (!AddendMI || AddendMI->getParent() != MI.getParent())
Hal Finkel089b8ec2015-02-01 21:51:22 +0000123 continue;
124
125 // The addend must be a full copy within the same register class.
126
127 if (!AddendMI->isFullCopy())
128 continue;
129
130 unsigned AddendSrcReg = AddendMI->getOperand(1).getReg();
131 if (TargetRegisterInfo::isVirtualRegister(AddendSrcReg)) {
132 if (MRI.getRegClass(AddendMI->getOperand(0).getReg()) !=
133 MRI.getRegClass(AddendSrcReg))
134 continue;
135 } else {
136 // If AddendSrcReg is a physical register, make sure the destination
137 // register class contains it.
138 if (!MRI.getRegClass(AddendMI->getOperand(0).getReg())
139 ->contains(AddendSrcReg))
140 continue;
141 }
142
143 // In theory, there could be other uses of the addend copy before this
144 // fma. We could deal with this, but that would require additional
145 // logic below and I suspect it will not occur in any relevant
146 // situations. Additionally, check whether the copy source is killed
147 // prior to the fma. In order to replace the addend here with the
148 // source of the copy, it must still be live here. We can't use
149 // interval testing for a physical register, so as long as we're
150 // walking the MIs we may as well test liveness here.
Hal Finkel8acae522015-07-14 20:02:02 +0000151 //
152 // FIXME: There is a case that occurs in practice, like this:
Francis Visoiu Mistriha8a83d12017-12-07 10:40:31 +0000153 // %9 = COPY %f1; VSSRC:%9
Hal Finkel8acae522015-07-14 20:02:02 +0000154 // ...
Francis Visoiu Mistriha8a83d12017-12-07 10:40:31 +0000155 // %6 = COPY %9; VSSRC:%6,%9
156 // %7 = COPY %9; VSSRC:%7,%9
Francis Visoiu Mistrih93ef1452017-11-30 12:12:19 +0000157 // %9<def,tied1> = XSMADDASP %9<tied0>, %1, %4; VSSRC:
158 // %6<def,tied1> = XSMADDASP %6<tied0>, %1, %2; VSSRC:
159 // %7<def,tied1> = XSMADDASP %7<tied0>, %1, %3; VSSRC:
Hal Finkel8acae522015-07-14 20:02:02 +0000160 // which prevents an otherwise-profitable transformation.
Hal Finkel089b8ec2015-02-01 21:51:22 +0000161 bool OtherUsers = false, KillsAddendSrc = false;
162 for (auto J = std::prev(I), JE = MachineBasicBlock::iterator(AddendMI);
163 J != JE; --J) {
164 if (J->readsVirtualRegister(AddendMI->getOperand(0).getReg())) {
165 OtherUsers = true;
166 break;
167 }
168 if (J->modifiesRegister(AddendSrcReg, TRI) ||
169 J->killsRegister(AddendSrcReg, TRI)) {
170 KillsAddendSrc = true;
171 break;
172 }
173 }
174
175 if (OtherUsers || KillsAddendSrc)
176 continue;
177
Hal Finkel089b8ec2015-02-01 21:51:22 +0000178
Kyle Buttd62d8b72016-02-03 01:41:09 +0000179 // The transformation doesn't work well with things like:
Francis Visoiu Mistrih93ef1452017-11-30 12:12:19 +0000180 // %5 = A-form-op %5, %11, %5;
181 // unless %11 is also a kill, so skip when it is not,
Kyle Buttd62d8b72016-02-03 01:41:09 +0000182 // and check operand 3 to see it is also a kill to handle the case:
Francis Visoiu Mistrih93ef1452017-11-30 12:12:19 +0000183 // %5 = A-form-op %5, %5, %11;
184 // where %5 and %11 are both kills. This case would be skipped
Kyle Buttd62d8b72016-02-03 01:41:09 +0000185 // otherwise.
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000186 unsigned OldFMAReg = MI.getOperand(0).getReg();
Kyle Buttd62d8b72016-02-03 01:41:09 +0000187
188 // Find one of the product operands that is killed by this instruction.
Hal Finkel089b8ec2015-02-01 21:51:22 +0000189 unsigned KilledProdOp = 0, OtherProdOp = 0;
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000190 unsigned Reg2 = MI.getOperand(2).getReg();
191 unsigned Reg3 = MI.getOperand(3).getReg();
Kyle Buttd62d8b72016-02-03 01:41:09 +0000192 if (LIS->getInterval(Reg2).Query(FMAIdx).isKill()
193 && Reg2 != OldFMAReg) {
Hal Finkel089b8ec2015-02-01 21:51:22 +0000194 KilledProdOp = 2;
195 OtherProdOp = 3;
Kyle Buttd62d8b72016-02-03 01:41:09 +0000196 } else if (LIS->getInterval(Reg3).Query(FMAIdx).isKill()
197 && Reg3 != OldFMAReg) {
Hal Finkel089b8ec2015-02-01 21:51:22 +0000198 KilledProdOp = 3;
199 OtherProdOp = 2;
200 }
201
Kyle Buttd62d8b72016-02-03 01:41:09 +0000202 // If there are no usable killed product operands, then this
203 // transformation is likely not profitable.
Hal Finkel089b8ec2015-02-01 21:51:22 +0000204 if (!KilledProdOp)
205 continue;
206
NAKAMURA Takumi0a7d0ad2015-09-22 11:15:07 +0000207 // If the addend copy is used only by this MI, then the addend source
208 // register is likely not live here. This could be fixed (based on the
209 // legality checks above, the live range for the addend source register
210 // could be extended), but it seems likely that such a trivial copy can
211 // be coalesced away later, and thus is not worth the effort.
212 if (TargetRegisterInfo::isVirtualRegister(AddendSrcReg) &&
Hal Finkel0f2ddcb2015-08-24 23:48:28 +0000213 !LIS->getInterval(AddendSrcReg).liveAt(FMAIdx))
214 continue;
Hal Finkel089b8ec2015-02-01 21:51:22 +0000215
216 // Transform: (O2 * O3) + O1 -> (O2 * O1) + O3.
217
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000218 unsigned KilledProdReg = MI.getOperand(KilledProdOp).getReg();
219 unsigned OtherProdReg = MI.getOperand(OtherProdOp).getReg();
Hal Finkel089b8ec2015-02-01 21:51:22 +0000220
221 unsigned AddSubReg = AddendMI->getOperand(1).getSubReg();
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000222 unsigned KilledProdSubReg = MI.getOperand(KilledProdOp).getSubReg();
223 unsigned OtherProdSubReg = MI.getOperand(OtherProdOp).getSubReg();
Hal Finkel089b8ec2015-02-01 21:51:22 +0000224
225 bool AddRegKill = AddendMI->getOperand(1).isKill();
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000226 bool KilledProdRegKill = MI.getOperand(KilledProdOp).isKill();
227 bool OtherProdRegKill = MI.getOperand(OtherProdOp).isKill();
Hal Finkel089b8ec2015-02-01 21:51:22 +0000228
229 bool AddRegUndef = AddendMI->getOperand(1).isUndef();
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000230 bool KilledProdRegUndef = MI.getOperand(KilledProdOp).isUndef();
231 bool OtherProdRegUndef = MI.getOperand(OtherProdOp).isUndef();
Hal Finkel089b8ec2015-02-01 21:51:22 +0000232
Kyle Butt28b01a52015-12-10 21:28:40 +0000233 // If there isn't a class that fits, we can't perform the transform.
234 // This is needed for correctness with a mixture of VSX and Altivec
235 // instructions to make sure that a low VSX register is not assigned to
236 // the Altivec instruction.
237 if (!MRI.constrainRegClass(KilledProdReg,
238 MRI.getRegClass(OldFMAReg)))
239 continue;
240
Hal Finkel089b8ec2015-02-01 21:51:22 +0000241 assert(OldFMAReg == AddendMI->getOperand(0).getReg() &&
242 "Addend copy not tied to old FMA output!");
243
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000244 DEBUG(dbgs() << "VSX FMA Mutation:\n " << MI);
Hal Finkel089b8ec2015-02-01 21:51:22 +0000245
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000246 MI.getOperand(0).setReg(KilledProdReg);
247 MI.getOperand(1).setReg(KilledProdReg);
248 MI.getOperand(3).setReg(AddendSrcReg);
Hal Finkel089b8ec2015-02-01 21:51:22 +0000249
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000250 MI.getOperand(0).setSubReg(KilledProdSubReg);
251 MI.getOperand(1).setSubReg(KilledProdSubReg);
252 MI.getOperand(3).setSubReg(AddSubReg);
Hal Finkel089b8ec2015-02-01 21:51:22 +0000253
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000254 MI.getOperand(1).setIsKill(KilledProdRegKill);
255 MI.getOperand(3).setIsKill(AddRegKill);
Hal Finkel089b8ec2015-02-01 21:51:22 +0000256
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000257 MI.getOperand(1).setIsUndef(KilledProdRegUndef);
258 MI.getOperand(3).setIsUndef(AddRegUndef);
Hal Finkel089b8ec2015-02-01 21:51:22 +0000259
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000260 MI.setDesc(TII->get(AltOpc));
Hal Finkel089b8ec2015-02-01 21:51:22 +0000261
Kyle Buttd62d8b72016-02-03 01:41:09 +0000262 // If the addend is also a multiplicand, replace it with the addend
263 // source in both places.
264 if (OtherProdReg == AddendMI->getOperand(0).getReg()) {
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000265 MI.getOperand(2).setReg(AddendSrcReg);
266 MI.getOperand(2).setSubReg(AddSubReg);
267 MI.getOperand(2).setIsKill(AddRegKill);
268 MI.getOperand(2).setIsUndef(AddRegUndef);
Kyle Buttd62d8b72016-02-03 01:41:09 +0000269 } else {
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000270 MI.getOperand(2).setReg(OtherProdReg);
271 MI.getOperand(2).setSubReg(OtherProdSubReg);
272 MI.getOperand(2).setIsKill(OtherProdRegKill);
273 MI.getOperand(2).setIsUndef(OtherProdRegUndef);
Kyle Buttd62d8b72016-02-03 01:41:09 +0000274 }
275
Duncan P. N. Exon Smithe5a22f42016-07-27 13:24:16 +0000276 DEBUG(dbgs() << " -> " << MI);
Hal Finkel089b8ec2015-02-01 21:51:22 +0000277
278 // The killed product operand was killed here, so we can reuse it now
279 // for the result of the fma.
280
281 LiveInterval &FMAInt = LIS->getInterval(OldFMAReg);
282 VNInfo *FMAValNo = FMAInt.getVNInfoAt(FMAIdx.getRegSlot());
283 for (auto UI = MRI.reg_nodbg_begin(OldFMAReg), UE = MRI.reg_nodbg_end();
284 UI != UE;) {
285 MachineOperand &UseMO = *UI;
286 MachineInstr *UseMI = UseMO.getParent();
287 ++UI;
288
289 // Don't replace the result register of the copy we're about to erase.
290 if (UseMI == AddendMI)
291 continue;
292
Kyle Butt28b01a52015-12-10 21:28:40 +0000293 UseMO.substVirtReg(KilledProdReg, KilledProdSubReg, *TRI);
Hal Finkel089b8ec2015-02-01 21:51:22 +0000294 }
295
296 // Extend the live intervals of the killed product operand to hold the
297 // fma result.
298
299 LiveInterval &NewFMAInt = LIS->getInterval(KilledProdReg);
300 for (LiveInterval::iterator AI = FMAInt.begin(), AE = FMAInt.end();
301 AI != AE; ++AI) {
302 // Don't add the segment that corresponds to the original copy.
303 if (AI->valno == AddendValNo)
304 continue;
305
306 VNInfo *NewFMAValNo =
307 NewFMAInt.getNextValue(AI->start,
308 LIS->getVNInfoAllocator());
309
310 NewFMAInt.addSegment(LiveInterval::Segment(AI->start, AI->end,
311 NewFMAValNo));
312 }
313 DEBUG(dbgs() << " extended: " << NewFMAInt << '\n');
314
Hal Finkel673b4932015-07-15 08:23:03 +0000315 // Extend the live interval of the addend source (it might end at the
316 // copy to be removed, or somewhere in between there and here). This
317 // is necessary only if it is a physical register.
318 if (!TargetRegisterInfo::isVirtualRegister(AddendSrcReg))
319 for (MCRegUnitIterator Units(AddendSrcReg, TRI); Units.isValid();
320 ++Units) {
321 unsigned Unit = *Units;
322
323 LiveRange &AddendSrcRange = LIS->getRegUnit(Unit);
324 AddendSrcRange.extendInBlock(LIS->getMBBStartIdx(&MBB),
325 FMAIdx.getRegSlot());
326 DEBUG(dbgs() << " extended: " << AddendSrcRange << '\n');
327 }
328
Hal Finkel089b8ec2015-02-01 21:51:22 +0000329 FMAInt.removeValNo(FMAValNo);
330 DEBUG(dbgs() << " trimmed: " << FMAInt << '\n');
331
332 // Remove the (now unused) copy.
333
334 DEBUG(dbgs() << " removing: " << *AddendMI << '\n');
Duncan P. N. Exon Smith3ac9cc62016-02-27 06:40:41 +0000335 LIS->RemoveMachineInstrFromMaps(*AddendMI);
Hal Finkel089b8ec2015-02-01 21:51:22 +0000336 AddendMI->eraseFromParent();
337
338 Changed = true;
339 }
340
341 return Changed;
342 }
343
344public:
345 bool runOnMachineFunction(MachineFunction &MF) override {
Andrew Kaylor289bd5f2016-04-27 19:39:32 +0000346 if (skipFunction(*MF.getFunction()))
347 return false;
348
Hal Finkel089b8ec2015-02-01 21:51:22 +0000349 // If we don't have VSX then go ahead and return without doing
350 // anything.
351 const PPCSubtarget &STI = MF.getSubtarget<PPCSubtarget>();
352 if (!STI.hasVSX())
353 return false;
354
355 LIS = &getAnalysis<LiveIntervals>();
356
357 TII = STI.getInstrInfo();
358
359 bool Changed = false;
360
361 if (DisableVSXFMAMutate)
362 return Changed;
363
364 for (MachineFunction::iterator I = MF.begin(); I != MF.end();) {
365 MachineBasicBlock &B = *I++;
366 if (processBlock(B))
367 Changed = true;
368 }
369
370 return Changed;
371 }
372
373 void getAnalysisUsage(AnalysisUsage &AU) const override {
374 AU.addRequired<LiveIntervals>();
375 AU.addPreserved<LiveIntervals>();
376 AU.addRequired<SlotIndexes>();
377 AU.addPreserved<SlotIndexes>();
Krzysztof Parzyszek31095d22016-11-30 13:31:09 +0000378 AU.addRequired<MachineDominatorTree>();
379 AU.addPreserved<MachineDominatorTree>();
Hal Finkel089b8ec2015-02-01 21:51:22 +0000380 MachineFunctionPass::getAnalysisUsage(AU);
381 }
382 };
Alexander Kornienkof00654e2015-06-23 09:49:53 +0000383}
Hal Finkel089b8ec2015-02-01 21:51:22 +0000384
385INITIALIZE_PASS_BEGIN(PPCVSXFMAMutate, DEBUG_TYPE,
386 "PowerPC VSX FMA Mutation", false, false)
387INITIALIZE_PASS_DEPENDENCY(LiveIntervals)
388INITIALIZE_PASS_DEPENDENCY(SlotIndexes)
Krzysztof Parzyszek31095d22016-11-30 13:31:09 +0000389INITIALIZE_PASS_DEPENDENCY(MachineDominatorTree)
Hal Finkel089b8ec2015-02-01 21:51:22 +0000390INITIALIZE_PASS_END(PPCVSXFMAMutate, DEBUG_TYPE,
391 "PowerPC VSX FMA Mutation", false, false)
392
393char &llvm::PPCVSXFMAMutateID = PPCVSXFMAMutate::ID;
394
395char PPCVSXFMAMutate::ID = 0;
NAKAMURA Takumi70ad98a2015-09-22 11:13:55 +0000396FunctionPass *llvm::createPPCVSXFMAMutatePass() {
397 return new PPCVSXFMAMutate();
398}