Skip to content

Commit 44b4967

Browse files
committed
[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.
1 parent aabc3c5 commit 44b4967

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,8 +1517,6 @@ bool AArch64InstructionSelector::select(MachineInstr &I) {
15171517
// Speculation tracking/SLH assumes that optimized TB(N)Z/CB(N)Z
15181518
// instructions will not be produced, as they are conditional branch
15191519
// instructions that do not set flags.
1520-
bool ProduceNonFlagSettingCondBr =
1521-
!MF.getFunction().hasFnAttribute(Attribute::SpeculativeLoadHardening);
15221520
if (ProduceNonFlagSettingCondBr && selectCompareBranch(I, MF, MRI))
15231521
return true;
15241522

0 commit comments

Comments
 (0)