[all-commits] [llvm/llvm-project] 858d1d: [DAG] visitTRUNCATE - early out from computeKnownB...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Aug 18 06:55:32 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 858d1dfa2c4823422c8c6b0459130954cf89fb73
      https://github.com/llvm/llvm-project/commit/858d1dfa2c4823422c8c6b0459130954cf89fb73
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

  Log Message:
  -----------
  [DAG] visitTRUNCATE - early out from computeKnownBits/ComputeNumSignBits failures. NFC. (#154111)

Avoid unnecessary (costly) computeKnownBits/ComputeNumSignBits calls - use MaskedValueIsZero instead of computeKnownBits directly to simplify code.



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