[PATCH] D75845: [ValueLattice] Add singlecrfromundef lattice value.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 15 04:48:11 PDT 2020


fhahn marked 4 inline comments as done.
fhahn added inline comments.


================
Comment at: llvm/include/llvm/Analysis/ValueLattice.h:47
     /// constantexprs can appear here.)
     notconstant,
 
----------------
efriedma wrote:
> fhahn wrote:
> > efriedma wrote:
> > > Sort of a side-question while I'm here, but how are we inferring notconstant?  Is the inference safe in the presence of undef?
> > I've responded in D75120
> I guess my concern is really, does "notconstant" imply that we've proven the value isn't undef?  It would probably be worth stating that explicitly.
Right, notconstant (undef) is not allowed. I'll state that explicitly.


================
Comment at: llvm/include/llvm/Analysis/ValueLattice.h:44
+    /// Transition allowed to the following states:
+    ///  constant
+    ///  singlecrfromundef
----------------
efriedma wrote:
> Is there actually a transition from undef -> constant?
Yes it is allowed in `mergeIn()`, which also ensures going to overdefined if we merge a constant with a different constant.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75845/new/

https://reviews.llvm.org/D75845





More information about the llvm-commits mailing list