[llvm] [AArch64] Refactor redundant PTEST optimisations (NFC) (PR #87802)

Momchil Velikov via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 12 03:44:35 PDT 2024


momchil-velikov wrote:

> > What do you think to `canRemovePTestInstr` returning `std::optional<unsigned>`  ...
> 
> It'd be nicer, in principle, however this patch is extracting the NFC parts from #81141 where the pair becomes a tuple and gets one more member.

Actually ...
I'll have a second look into using `std::optional` as it results in better generated code ...

https://github.com/llvm/llvm-project/pull/87802


More information about the llvm-commits mailing list