We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f5a785 commit 629aebcCopy full SHA for 629aebc
llvm/include/llvm/CodeGen/ScoreboardHazardRecognizer.h
@@ -59,7 +59,7 @@ class ScoreboardHazardRecognizer : public ScheduleHazardRecognizer {
59
60
InstrStage::FuncUnits& operator[](size_t idx) const {
61
// Depth is expected to be a power-of-2.
62
- assert(Depth && !(Depth & (Depth - 1)) &&
+ assert(llvm::has_single_bit(Depth) &&
63
"Scoreboard was not initialized properly!");
64
65
return Data[(Head + idx) & (Depth-1)];
0 commit comments