[PATCH] D157375: [LV] Pre-commit test case for AnyOf reduction , NFC

Michael Maitland via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 16 10:20:10 PDT 2023


michaelmaitland added a comment.

  int rdx = a;
  for (i = 0; i < n; ++i)
    if(rdx != 3)
      rdx = b;

is equivalent to

  int rdx = a != 3 ? b : a;

I'd hope that this loop would be removed before we get to LV.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157375/new/

https://reviews.llvm.org/D157375



More information about the llvm-commits mailing list