[PATCH] D75859: [CodeGenPrepare] Fold br(freeze(icmp x, const)) to br(icmp(freeze x, const))
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 9 12:25:23 PDT 2020
jdoerfert added a comment.
I feel this is part of a bigger pattern. (I assume constants cannot cause poison and undef now)
Let `op` be `OPERATION<value, constant>` or `OPERATION<constant, value>`, if all uses of `op`, or the single use of `op`, are `freeze`, move `freeze` to `value`.
Now we can keep a list of opcodes for which we don't want to do this but it seems more generic than br + icmp.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75859/new/
https://reviews.llvm.org/D75859
More information about the llvm-commits
mailing list