[all-commits] [llvm/llvm-project] 9bceb8: [X86] (0 - SetCC) | C -> (zext (not SetCC)) * (C +...

deadalnix via All-commits all-commits at lists.llvm.org
Wed Aug 10 08:12:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9bceb8981d32fe9465257c31413395f445ab05d8
      https://github.com/llvm/llvm-project/commit/9bceb8981d32fe9465257c31413395f445ab05d8
  Author: Amaury Séchet <deadalnix at gmail.com>
  Date:   2022-08-10 (Wed, 10 Aug 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/or-lea.ll

  Log Message:
  -----------
  [X86] (0 - SetCC) | C -> (zext (not SetCC)) * (C + 1) - 1 if we can get a LEA out of it.

This adresses various regression in D131260 , as well as is a useful optimization in itself.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D131358




More information about the All-commits mailing list