[all-commits] [llvm/llvm-project] 5b2045: [CodeGenPrepare] sinkCmpExpression - don't sink la...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Nov 10 06:40:05 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b204530629cabecfeba6f890dd7cb03e0b1a2e2
      https://github.com/llvm/llvm-project/commit/5b204530629cabecfeba6f890dd7cb03e0b1a2e2
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2025-11-10 (Mon, 10 Nov 2025)

  Changed paths:
    M llvm/lib/CodeGen/CodeGenPrepare.cpp
    M llvm/test/CodeGen/RISCV/overflow-intrinsics.ll
    M llvm/test/CodeGen/X86/pr166534.ll

  Log Message:
  -----------
  [CodeGenPrepare] sinkCmpExpression - don't sink larger than legal integer comparisons (#166778)

A generic alternative to #166564 - make the assumption that expanding
integer comparisons will be expensive if they are larger than the largest
legal type so avoid sinking if they are also used in the current BB + any phis.

Fixes #166534



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list