Commit 44b49675 authored by Amara Emerson's avatar Amara Emerson
Browse files

[AArch64][GlobalISel] Remove duplicate attribute lookup code that was supposed to be cached. NFC.

When I cached this a long time ago it seems I forgot to remove the locally
declared variable of the same name in select(), so the caching wasn't having
any compile time benefit. Doh.
parent aabc3c59
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1517,8 +1517,6 @@ bool AArch64InstructionSelector::select(MachineInstr &I) {
    // Speculation tracking/SLH assumes that optimized TB(N)Z/CB(N)Z
    // instructions will not be produced, as they are conditional branch
    // instructions that do not set flags.
    bool ProduceNonFlagSettingCondBr =
        !MF.getFunction().hasFnAttribute(Attribute::SpeculativeLoadHardening);
    if (ProduceNonFlagSettingCondBr && selectCompareBranch(I, MF, MRI))
      return true;