[all-commits] [llvm/llvm-project] e4d751: Update BPFAdjustOpt.cpp to accept select form of o...

Juneyoung Lee via All-commits all-commits at lists.llvm.org
Sat Feb 20 01:30:25 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e4d751c271a5dfec12953b67d4fb88a1dd00920f
      https://github.com/llvm/llvm-project/commit/e4d751c271a5dfec12953b67d4fb88a1dd00920f
  Author: Juneyoung Lee <aqjune at gmail.com>
  Date:   2021-02-20 (Sat, 20 Feb 2021)

  Changed paths:
    M llvm/lib/Target/BPF/BPFAdjustOpt.cpp

  Log Message:
  -----------
  Update BPFAdjustOpt.cpp to accept select form of or as well

This is a minor pattern-match update to BPFAdjustOpt.cpp to accept
not only 'or i1 a, b' but also 'select i1 a, i1 true, i1 b'.
This resolves regression after SimplifyCFG's creating select form
of and/or instead (https://reviews.llvm.org/D95026).
This is a small change, and currently such select form isn't created
or doesn't reach to the late pipeline (because InstCombine eagerly
folds it into and/or i1), so I chose to commit without a review process.




More information about the All-commits mailing list