[llvm-commits] [llvm] r55794 - in /llvm/trunk/lib/Target/X86/AsmPrinter: X86ATTAsmPrinter.cpp X86IntelAsmPrinter.cpp

Duncan Sands baldrick at free.fr
Fri Sep 5 01:00:23 PDT 2008


Hi Devang,

>    unsigned FnAlign = OptimizeForSize ? 1 : 4;
> +  if (FnAlign == 4 && (F->getNotes() & FN_NOTE_OptimizeForSize))
> +    FnAlign = 1;

There's no point in testing that FnAlign == 4 here.  I appreciate
that you may be trying for a small speedup, but it just makes the
code more fragile.

Ciao,

Duncan.



More information about the llvm-commits mailing list