[llvm] [AArch64] New pass for code layout optimizations. (PR #184434)
Jonathan Cohen via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 7 00:55:50 PDT 2026
================
@@ -161,9 +162,9 @@ bool AArch64CodeLayoutOpt::runOnMachineFunction(MachineFunction &MF) {
const auto *Subtarget = &MF.getSubtarget<AArch64Subtarget>();
TII = Subtarget->getInstrInfo();
- const unsigned Mask = EnableCodeAlignment;
- if (!((Mask & 0x1) && Subtarget->hasFuseFCmpFCSel()) &&
- !((Mask & 0x2) && Subtarget->hasFuseCmpCSel()))
+ if (!((EnableCodeAlignment.isSet(FcmpFcsel)) &&
----------------
jcohen-apple wrote:
I think the parenthesis here are redundant
https://github.com/llvm/llvm-project/pull/184434
More information about the llvm-commits
mailing list