[PATCH] D96440: [knownbits] Preserve known bits for small shift recurrences
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 10 11:44:08 PST 2021
reames added inline comments.
================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:1343
+ // An ashr recurrence will extend the initial sign bit
+ RefineRecurrence(I, DemandedElts, Known, Known2, Depth, Q);
break;
----------------
nikic wrote:
> Why do we need to do this both starting from the shifts and starting from the phi? The existing code for add recurrences only starts from phis.
Great question! Turns out I don't, I just never thought to check after adding the phi logic. Will remove these three call sites.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96440/new/
https://reviews.llvm.org/D96440
More information about the llvm-commits
mailing list