[PATCH] D97092: [ValueTracking] Handle assumes on arguments with context instruction

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 22 12:57:38 PST 2021


nikic added a comment.

Just to clarify one thing: The (general) ephemeral value problem is a bit more complicated in that we actually *do* want to fold assume conditions -- just not on themselves. For example, if you have `assume(x > 0); assume(x > 1);`, then it is expected that the second assume gets folded away, because it is implied by the first and thus redundant. I don't think assume operand bundles fundamentally change the picture here, they just make it easier to identify ephemeral values.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97092



More information about the llvm-commits mailing list