[all-commits] [llvm/llvm-project] fa45fb: [InstCombine] Handle assumes in multi-use demanded...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jun 2 05:24:41 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa45fb7f0cbaaca59c35c4d5980246be54ed0eff
      https://github.com/llvm/llvm-project/commit/fa45fb7f0cbaaca59c35c4d5980246be54ed0eff
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-06-02 (Fri, 02 Jun 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/ValueTracking.h
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
    M llvm/test/Transforms/InstCombine/assume.ll
    M llvm/test/Transforms/InstCombine/shift.ll
    M llvm/test/Transforms/InstCombine/zext-or-icmp.ll

  Log Message:
  -----------
  [InstCombine] Handle assumes in multi-use demanded bits simplification

This fixes the largest remaining discrepancy between results of
computeKnownBits() and SimplifyDemandedBits(). We only care about
the multi-use case here, because the assume necessarily introduces
an extra use.




More information about the All-commits mailing list