llvm-project
e4d2ff5b - [SelectionDAG][PowerPC] Remove setTruncatingStore from StoreSDNode. (#137667)

Commit
228 days ago
[SelectionDAG][PowerPC] Remove setTruncatingStore from StoreSDNode. (#137667) Mutating a node after it has been created isn't a good idea. After e17f07c4debbe76f5ebcdeeda619e7438700e2ad, we have a version of setStore that can create a truncating indexed store. Use that instead of MorphNodeTo+setTruncatingStore in PowerPC. Unfortunately, if we return the newly created node, DAGCombiner will visit the node and change the constant. To prevent this, we use DCI.CombineTo and avoid adding the new node to the worklist.
Author
Parents
Loading