diff options
Diffstat (limited to 'lib/Target/X86/X86FixupBWInsts.cpp')
| -rw-r--r-- | lib/Target/X86/X86FixupBWInsts.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/Target/X86/X86FixupBWInsts.cpp b/lib/Target/X86/X86FixupBWInsts.cpp index ed297e678203..bf541d933790 100644 --- a/lib/Target/X86/X86FixupBWInsts.cpp +++ b/lib/Target/X86/X86FixupBWInsts.cpp @@ -1,9 +1,8 @@ //===-- X86FixupBWInsts.cpp - Fixup Byte or Word instructions -----------===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// /// \file @@ -103,9 +102,7 @@ public: StringRef getPassName() const override { return FIXUPBW_DESC; } - FixupBWInstPass() : MachineFunctionPass(ID) { - initializeFixupBWInstPassPass(*PassRegistry::getPassRegistry()); - } + FixupBWInstPass() : MachineFunctionPass(ID) { } void getAnalysisUsage(AnalysisUsage &AU) const override { AU.addRequired<MachineLoopInfo>(); // Machine loop info is used to @@ -151,7 +148,7 @@ bool FixupBWInstPass::runOnMachineFunction(MachineFunction &MF) { this->MF = &MF; TII = MF.getSubtarget<X86Subtarget>().getInstrInfo(); - OptForSize = MF.getFunction().optForSize(); + OptForSize = MF.getFunction().hasOptSize(); MLI = &getAnalysis<MachineLoopInfo>(); LiveRegs.init(TII->getRegisterInfo()); |
