[llvm] [X86][APX] Promote 8/16-bit LEA to 32-bit to avoid partial dependence (PR #161051)
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 29 04:01:01 PDT 2025
KanRobert wrote:
> > > Loss of In64BitMode checks?
> >
> >
> > Yes, it's only used by MC for disassembling. Here we just use the nodes during codegen.
>
> @KanRobert do we use it here to block generating APX instructions when using `-mtriple=i686-linux -mattr=+ndd`? Anyway, LEA is a legal 32-bit instruction. So we are always good here.
I don't think so, and I don't understand why we need the predicate HasNDD here, it was added by
https://github.com/llvm/llvm-project/pull/122102
https://github.com/llvm/llvm-project/pull/161051
More information about the llvm-commits
mailing list