[all-commits] [llvm/llvm-project] 848d7a: [CVP] Improve the value solving of select at use (...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Fri Jan 5 10:33:10 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 848d7af956442fbf08310cc2d094035802fbe6ea
      https://github.com/llvm/llvm-project/commit/848d7af956442fbf08310cc2d094035802fbe6ea
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2024-01-06 (Sat, 06 Jan 2024)

  Changed paths:
    M llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
    M llvm/test/Transforms/CorrelatedValuePropagation/select.ll

  Log Message:
  -----------
  [CVP] Improve the value solving of select at use (#76700)

This patch improves the value solving of select at use if the condition
is an icmp and we know the result of comparison from
`LVI->getPredicateAt`.

Compile-time impact:
http://llvm-compile-time-tracker.com/compare.php?from=7e405eb722e40c79b7726201d0f76b5dab34ba0f&to=3c315b1ddcb0ad82554b33f08b9356679fae4bb7&stat=instructions:u

|stage1-O3|stage1-ReleaseThinLTO|stage1-ReleaseLTO-g|stage1-O0-g|stage2-O3|stage2-O0-g|stage2-clang|
|--|--|--|--|--|--|--|
|-0.01%|+0.01%|-0.00%|-0.00%|-0.08%|+0.02%|-0.01%|




More information about the All-commits mailing list