[all-commits] [llvm/llvm-project] 06d567: [InstSimplify] Respect CanUseUndef in more places

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Aug 11 13:00:21 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 06d567059e5ad76c0eb1ee85295f76c89ff453a1
      https://github.com/llvm/llvm-project/commit/06d567059e5ad76c0eb1ee85295f76c89ff453a1
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-08-11 (Tue, 11 Aug 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/InstructionSimplify.h
    M llvm/lib/Analysis/InstructionSimplify.cpp

  Log Message:
  -----------
  [InstSimplify] Respect CanUseUndef in more places

Similar to what we do in IIQ, add an isUndefValue() helper that
checks for undef values while respective CanUseUndef. This makes
it much easier to search for places that don't respect the flag
yet.




More information about the All-commits mailing list