[PATCH] D150074: InstCombine: Handle shrinking fneg used by fptrunc
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 18 10:19:31 PDT 2023
arsenm abandoned this revision.
arsenm added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp:1753
if (match(Op, m_FNeg(m_Value(X)))) {
Value *InnerTrunc = Builder.CreateFPTrunc(X, Ty);
----------------
foad wrote:
> Now I'm confused. What does this code handle and how is it different from what you added?
I'm confused too, I saw these not fold in a test but the tests I added work without this
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150074/new/
https://reviews.llvm.org/D150074
More information about the llvm-commits
mailing list