Commit 103fc0f
committed
[SCEV] Replace IsAvailableOnEntry with block disposition
As far as I understand, the IsAvailableOnEntry() function basically
implements the same functionality as the properlyDominates() block
disposition. The primary difference (apart from a weaker
implementation) seems to be in this comment at the top:
// Checks if the SCEV S is available at BB. S is considered available at BB
// if S can be materialized at BB without introducing a fault.
However, I don't really understand why there would be such a
requirement. It's my understanding that SCEV explicitly does not
care about trapping udiv instructions itself, and it's the job of
SCEVExpander's isSafeToExpand() to make sure these don't get
expanded if they may trap.
Differential Revision: https://reviews.llvm.org/D1493441 parent d961f66 commit 103fc0f
File tree
2 files changed
+3
-89
lines changed- llvm
- lib/Analysis
- test/Analysis/ScalarEvolution
2 files changed
+3
-89
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5890 | 5890 | | |
5891 | 5891 | | |
5892 | 5892 | | |
5893 | | - | |
5894 | | - | |
5895 | | - | |
5896 | | - | |
5897 | | - | |
5898 | | - | |
5899 | | - | |
5900 | | - | |
5901 | | - | |
5902 | | - | |
5903 | | - | |
5904 | | - | |
5905 | | - | |
5906 | | - | |
5907 | | - | |
5908 | | - | |
5909 | | - | |
5910 | | - | |
5911 | | - | |
5912 | | - | |
5913 | | - | |
5914 | | - | |
5915 | | - | |
5916 | | - | |
5917 | | - | |
5918 | | - | |
5919 | | - | |
5920 | | - | |
5921 | | - | |
5922 | | - | |
5923 | | - | |
5924 | | - | |
5925 | | - | |
5926 | | - | |
5927 | | - | |
5928 | | - | |
5929 | | - | |
5930 | | - | |
5931 | | - | |
5932 | | - | |
5933 | | - | |
5934 | | - | |
5935 | | - | |
5936 | | - | |
5937 | | - | |
5938 | | - | |
5939 | | - | |
5940 | | - | |
5941 | | - | |
5942 | | - | |
5943 | | - | |
5944 | | - | |
5945 | | - | |
5946 | | - | |
5947 | | - | |
5948 | | - | |
5949 | | - | |
5950 | | - | |
5951 | | - | |
5952 | | - | |
5953 | | - | |
5954 | | - | |
5955 | | - | |
5956 | | - | |
5957 | | - | |
5958 | | - | |
5959 | | - | |
5960 | | - | |
5961 | | - | |
5962 | | - | |
5963 | | - | |
5964 | | - | |
5965 | | - | |
5966 | | - | |
5967 | | - | |
5968 | | - | |
5969 | | - | |
5970 | | - | |
5971 | | - | |
5972 | | - | |
5973 | | - | |
5974 | | - | |
5975 | | - | |
5976 | | - | |
5977 | 5893 | | |
5978 | 5894 | | |
5979 | 5895 | | |
| |||
6011 | 5927 | | |
6012 | 5928 | | |
6013 | 5929 | | |
6014 | | - | |
6015 | | - | |
6016 | 5930 | | |
6017 | 5931 | | |
6018 | 5932 | | |
| |||
6033 | 5947 | | |
6034 | 5948 | | |
6035 | 5949 | | |
6036 | | - | |
6037 | | - | |
| 5950 | + | |
| 5951 | + | |
6038 | 5952 | | |
6039 | 5953 | | |
6040 | 5954 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
| 430 | + | |
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| |||
0 commit comments