[PATCH] D133902: X86: Stop assigning register costs for longer encodings
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 16 04:01:02 PDT 2022
RKSimon added a comment.
Early x86-64 CPUs (often with weak frontend/decoders) might benefit from avoiding REX encodings (I know when I was doing exegesis testing for the atom/silvermont sched models avoiding REX registers gave much more consistent backend numbers), although I'm not certain how much work adding CPU Feature specific costs would be (or how much benefit they'd give for most people).
================
Comment at: llvm/lib/Target/X86/X86RegisterInfo.td:128
-// X86-64 only, requires REX.
-let SubRegIndices = [sub_8bit, sub_8bit_hi_phony], CostPerUse = [1],
----------------
Keep the comments?
================
Comment at: llvm/lib/Target/X86/X86RegisterInfo.td:221
-// X86-64 only
-let CostPerUse = [1] in {
----------------
This comment is still useful
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133902/new/
https://reviews.llvm.org/D133902
More information about the llvm-commits
mailing list