diff options
author | Nikita Popov <npopov@redhat.com> | 2024-09-19 14:24:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-19 14:24:55 +0200 |
commit | dd599e92a6e5a1abc55ac694799102410c0d18c0 (patch) | |
tree | a8cd2e71b2a0e1264c33a76a36062a59d53b73bb /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp | |
parent | e0458a24a1d026d1666f82d671e579d5fdce0027 (diff) | |
download | llvm-dd599e92a6e5a1abc55ac694799102410c0d18c0.zip llvm-dd599e92a6e5a1abc55ac694799102410c0d18c0.tar.gz llvm-dd599e92a6e5a1abc55ac694799102410c0d18c0.tar.bz2 |
[ValueTracking] Support assume in entry block without DT (#109264)
isValidAssumeForContext() handles a couple of trivial cases even if no
dominator tree is available. This adds one more for the case where there
is an assume in the entry block, and a use in some other block. The
entry block always dominates all blocks.
As having context instruction but not having DT is fairly rare, there is
not much impact. Only test change is in assume-builder.ll, where less
redundant assumes are generated. I've found having this special case is
useful for an upcoming change though.
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions