[all-commits] [llvm/llvm-project] 7a62ea: [ValueTracking] Short-circuit computeKnownBitsAddS...

Nikita Popov via All-commits all-commits at lists.llvm.org
Sat Mar 21 05:42:30 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a62ea3889b94516f3886cec9e447f22b99856e3
      https://github.com/llvm/llvm-project/commit/7a62ea3889b94516f3886cec9e447f22b99856e3
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-03-21 (Sat, 21 Mar 2020)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp

  Log Message:
  -----------
  [ValueTracking] Short-circuit computeKnownBitsAddSub(); NFCI

If one operand is unknown (and we don't have nowrap), don't compute
the second operand.

Also don't create an unnecessary extra KnownBits variable, it's
okay to reuse KnownOut.

This reduces instructions on libclamav_md5.c by 40%.




More information about the All-commits mailing list