Skip to content

Commit 2320a96

Browse files
committed
third_party: ngen: restore PVC WAR bug workaround
1 parent 5415f97 commit 2320a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party/ngen/ngen_auto_swsb.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2234,7 +2234,7 @@ inline void analyze(HW hw, int tokens, Program &program, BasicBlock &bb, int pha
22342234
// Alter SWSB with any workarounds for PVC WAR dependencies.
22352235
// Note these alterations do not affect the dependency tables.
22362236
auto inumSync = (inumChain >= 0) ? inumChain : inum;
2237-
if ((tokenMaskDst & pww.dep.tokenMaskDst) == pww.dep.tokenMaskDst)
2237+
if ((tokenMaskDst & pww.dep.tokenMaskSrc) == pww.dep.tokenMaskSrc)
22382238
pww.strategy = PVCWARWA::None;
22392239
auto depTokenMask = pww.dep.tokenMaskSrc | pww.dep.tokenMaskDst;
22402240
switch (pww.strategy) {

0 commit comments

Comments
 (0)