[PATCH] D115914: [InstCombine] Fold two PHI operands of `or` conditionally.

Mingming Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 16 16:40:26 PST 2021


luna added a comment.

This revision handles the simple case (as shown in llvm/test/Transforms/InstCombine/fold-phi-of-binary-op.ll).

Send it out to collect feedback, and I will need to iterate and enhance it with more test cases (e.g., `or` instructions in `return` block in https://godbolt.org/z/79ehxzW9f), or other test cases in llvm/test/Transforms/SROA/alloca-struct.ll

p.s. I might need to delete alloca-struct.ll itself later.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115914



More information about the llvm-commits mailing list