aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/InlineCost.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2021-01-05 12:40:38 -0800
committerCraig Topper <craig.topper@sifive.com>2021-01-05 12:45:57 -0800
commit4ef91f5871a3c38bb2324f89b47a2a845e8a33fd (patch)
treea2b7e0da7f9d4b52c1966be0c3bb65cbccc1d3ce /llvm/lib/Analysis/InlineCost.cpp
parent5a1d31a28490e85de440b55e2e257b61d32e85b9 (diff)
downloadllvm-4ef91f5871a3c38bb2324f89b47a2a845e8a33fd.zip
llvm-4ef91f5871a3c38bb2324f89b47a2a845e8a33fd.tar.gz
llvm-4ef91f5871a3c38bb2324f89b47a2a845e8a33fd.tar.bz2
[DAGCombiner] Don't speculatively create an all ones constant in visitREM that might not be used.
This looks to have been done to save some duplicated code under two different if statements, but it ends up being harmful to D94073. This speculative constant can be called on a scalable vector type with i64 element size when i64 scalars aren't legal. The code tries and fails to find a vector type with i32 elements that it can use. So only create the node when we know it will be used.
Diffstat (limited to 'llvm/lib/Analysis/InlineCost.cpp')
0 files changed, 0 insertions, 0 deletions