The operand of the second any_of in EnforceSmallerThan should be
B not S like the FP code in the if below.
Unfortunately, fixing that causes an infinite loop in the build
of RISCV. So I've added a workaround for that as well.
Fixes PR44768.
Paths
| Differential D111502
[TableGen] Fix both sides of '&&' are same ClosedPublic Authored by craig.topper on Oct 9 2021, 7:53 PM.
Details Summary The operand of the second any_of in EnforceSmallerThan should be Unfortunately, fixing that causes an infinite loop in the build Fixes PR44768.
Diff Detail Event TimelineHerald added subscribers: luismarques, s.egerton, PkmX, simoncook. · View Herald TranscriptOct 9 2021, 7:53 PM
Comment Actions Improve comments. Add asserts. Handle as a special case in the if structure to make it more readable. This revision is now accepted and ready to land.Oct 12 2021, 8:44 AM Closed by commit rGaefaf167588b: [TableGen] Fix both sides of '&&' are same (authored by craig.topper). · Explain WhyOct 12 2021, 9:19 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 378722 llvm/utils/TableGen/CodeGenDAGPatterns.h
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
|
Comments? A magic hack like this needs the explanation as clear as possible and not just mentioned in the cpp implementation.