From 44b496758f177df2655b6adf88173e552aacec05 Mon Sep 17 00:00:00 2001 From: Amara Emerson Date: Thu, 23 Jan 2020 14:46:15 -0800 Subject: [PATCH] [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. --- llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp b/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp index 30fdd55..a582df9 100644 --- a/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp +++ b/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp @@ -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; -- 2.7.4