[all-commits] [llvm/llvm-project] 491936: [ValueTracking] reduce code duplication; NFC

RotateRight via All-commits all-commits at lists.llvm.org
Wed Apr 14 05:38:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 49193653974ae96b756b8ff13668d07d6252aa77
      https://github.com/llvm/llvm-project/commit/49193653974ae96b756b8ff13668d07d6252aa77
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-04-14 (Wed, 14 Apr 2021)

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

  Log Message:
  -----------
  [ValueTracking] reduce code duplication; NFC

The start value can't be null for something to be a non-zero
recurrence, so hoist that common check out of the switch.

Subsequent checks may be incomplete or over-specified as noted in:
D100408




More information about the All-commits mailing list