[PATCH] D77076: [InstSimplify] Allow some arithmetic optimizations for add/sub/div/rem look through freeze
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 4 07:24:19 PDT 2020
lebedev.ri requested changes to this revision.
lebedev.ri added a comment.
This revision now requires changes to proceed.
I don't like pattternmatching changes.
This should just add two new matchers: `m_Freeze(<...>)` and `m_FreezeOrSelf(<...>)`,
where `m_Freeze()` matches when the instruction is `freeze` and the inner matcher matches on the `freeze`'s operand,
and `m_FreezeOrSelf(<...>)` is `m_CombineOr(m_Freeze(<...>), <...>)`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77076/new/
https://reviews.llvm.org/D77076
More information about the llvm-commits
mailing list