Fix concats with wide width, bug1088 continued.

This commit is contained in:
Wilson Snyder
2016-09-16 18:54:28 -04:00
parent 7ca1d35a4e
commit 999f278971
3 changed files with 51 additions and 1 deletions
+5 -1
View File
@@ -144,8 +144,12 @@ private:
&& nodep->firstAbovep()->castNodeAssign()
&& assignNoTemp(nodep->firstAbovep()->castNodeAssign())) {
// Not much point if it's just a direct assignment to a constant
} else if (nodep->backp()->castSel()
&& nodep->backp()->castSel()->widthp() == nodep) {
// AstSel::width must remain a constant
} else if (nodep->firstAbovep()
&& nodep->firstAbovep()->castArraySel()) { // ArraySel's are pointer refs, ignore
&& nodep->firstAbovep()->castArraySel()) {
// ArraySel's are pointer refs, ignore
} else {
UINFO(4,"Cre Temp: "<<nodep<<endl);
createDeepTemp(nodep, false);