adjustSubwordCmp should not optimize a load of an i1 value.
This is achieved by checking that the size and store-size of the MemoryVT are the same.
Differential D78187
[SystemZ] Bugfix in adjustSubwordCmp() jonpa on Apr 15 2020, 2:57 AM. Authored by
Details
adjustSubwordCmp should not optimize a load of an i1 value. This is achieved by checking that the size and store-size of the MemoryVT are the same.
Diff Detail
Event TimelineComment Actions It seems that adjustSubwordCmp() actually was the only place in need of a fix: Even though the extension type of the load (sext from i1) is changed there now is also a sign extend inreg from i1 taking place. I added a check in adjustSubwordCmp() to make sure that the MemoryVT has the same store size as size. This catches the case where the size is 1 but store size is 8, while it seems to not affect benchmarks or any other tests. |