[PATCH] D83360: [InstSimplify] Remove select ?, undef, X -> X and select ?, X, undef -> X
David Majnemer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 8 14:31:10 PDT 2020
majnemer added inline comments.
================
Comment at: llvm/lib/Analysis/InstructionSimplify.cpp:4121-4125
- if (isa<UndefValue>(TrueVal)) // select ?, undef, X -> X
- return FalseVal;
- if (isa<UndefValue>(FalseVal)) // select ?, X, undef -> X
- return TrueVal;
-
----------------
Can we still do these optimizations when `X` is a frozen value?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83360/new/
https://reviews.llvm.org/D83360
More information about the cfe-commits
mailing list