aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2024-09-19 14:24:55 +0200
committerGitHub <noreply@github.com>2024-09-19 14:24:55 +0200
commitdd599e92a6e5a1abc55ac694799102410c0d18c0 (patch)
treea8cd2e71b2a0e1264c33a76a36062a59d53b73bb /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
parente0458a24a1d026d1666f82d671e579d5fdce0027 (diff)
downloadllvm-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