aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
diff options
context:
space:
mode:
authorWang, Xin10 <xin10.wang@intel.com>2023-04-18 02:49:18 -0400
committerWang, Xin10 <xin10.wang@intel.com>2023-04-18 03:23:41 -0400
commite4dd1d033063c8a669c7e77d9d7f88c1d3058e88 (patch)
tree8963cff6489b0219d6ca4b6116cd9da442f4de08 /llvm/utils/TableGen/CodeGenDAGPatterns.cpp
parentd9e717338f8042664177250315364094262c7073 (diff)
downloadllvm-e4dd1d033063c8a669c7e77d9d7f88c1d3058e88.zip
llvm-e4dd1d033063c8a669c7e77d9d7f88c1d3058e88.tar.gz
llvm-e4dd1d033063c8a669c7e77d9d7f88c1d3058e88.tar.bz2
Add assert to avoid unexpected situation
In line 68, func getBlockFreqRelativeToEntryBlock assume getEntryFreq() is non-zero, but the function could return 0, add assert to confirm it. Reviewed By: HaohaiWen Differential Revision: https://reviews.llvm.org/D148606
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
0 files changed, 0 insertions, 0 deletions