llvm-project
2df2373e - DAG/GlobalISel: Set disjoint for or in copysign lowering (#97057)

Commit
1 year ago
DAG/GlobalISel: Set disjoint for or in copysign lowering (#97057) We masked out the sign bit from one value, and the non-sign bits from the other so there should be no common bits set. No idea how to test this on the DAG path, other than scraping the debug logs. A few targets hit this path with f16 values, but the resulting i16 ors get anyext promoted and lose the disjoint flag. In the fp128 case, PPC gets further and the or loses the flag somewhere else later. Adding a haveNoCommonBits assert shows this works though.
Author
Parents
Loading