The BITCAST handling in computeKnownBits() previously only worked for little endian.
This patch reverses the iteration over elements for a big-endian target which allows this to work in this case also.
SystemZ test case.
Paths
| Differential D44249
[SelectionDAG] Handle big-endian target BITCAST in computeKnownBits() ClosedPublic Authored by jonpa on Mar 8 2018, 5:00 AM.
Details
Diff Detail Event Timeline
Comment Actions LGTM
This revision is now accepted and ready to land.Mar 16 2018, 12:27 PM
Revision Contents
Diff 137554 lib/CodeGen/SelectionDAG/SelectionDAG.cpp
test/CodeGen/SystemZ/dag-combine-03.ll
|
Will this be correct? Does it need to be reversed for BE?