[PATCH] D147373: [InstCombine] fold double reverses
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 28 21:55:00 PDT 2023
goldstein.w.n added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp:2770
+ // TODO: (reverse (unaryop (reverse x))) -> (unaryop x)
+ // TODO: (reverse (binop (reverse x), y)) -> (binop x, (reverse y))
+ return nullptr;
----------------
Is there any different logic you need for binop that doesn't apply for cmp?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147373/new/
https://reviews.llvm.org/D147373
More information about the llvm-commits
mailing list