[all-commits] [llvm/llvm-project] df9c00: [CVP] Use at-use info in `processBinOp` (#88523)

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Sat Apr 13 01:36:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df9c00beea5be08fc47aaea58eae333fc6cbef33
      https://github.com/llvm/llvm-project/commit/df9c00beea5be08fc47aaea58eae333fc6cbef33
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2024-04-13 (Sat, 13 Apr 2024)

  Changed paths:
    M llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
    M llvm/test/Transforms/CorrelatedValuePropagation/cond-at-use.ll
    M llvm/test/Transforms/CorrelatedValuePropagation/phi-common-val.ll

  Log Message:
  -----------
   [CVP] Use at-use info in `processBinOp` (#88523)

This patch uses `getConstantRangeAtUse` to infer nsw/nuw flags with
at-use info. It will enables more optimizations in InstCombine.

Compile-time impact:
http://llvm-compile-time-tracker.com/compare.php?from=a5ed14bc8e122fa5ac0aa81f8d8390931bd6b4e4&to=a83d3402b663439b91cb37a046fb7ac0220ba5c7&stat=instructions%3Au

Related issue: #87854



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