diff options
author | Andrew Litteken <andrew.litteken@gmail.com> | 2022-03-13 23:44:46 -0500 |
---|---|---|
committer | Andrew Litteken <andrew.litteken@gmail.com> | 2022-03-14 16:48:21 -0500 |
commit | 228cc2c38bfb9d703c33561dd88ce1b9e16601ce (patch) | |
tree | fc0b46b4840b203168da790803ef6e4517cf14c4 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | ce78e68261ff44861cd69d7f37b181fd5c774d3c (diff) | |
download | llvm-228cc2c38bfb9d703c33561dd88ce1b9e16601ce.zip llvm-228cc2c38bfb9d703c33561dd88ce1b9e16601ce.tar.gz llvm-228cc2c38bfb9d703c33561dd88ce1b9e16601ce.tar.bz2 |
[IROutliner] Ensure merged PHINodes respect order and incoming blocks, not just incoming values
When matching PHINodes when margining functions the IROutliner only checks that an incoming value exists in phi node in overall function. It doesn't check the length, the order, or that the incoming block also matches. In the given example, we see that both phi nodes have the same incoming values, but from different blocks.
The fix is to to enforce stricter a match of the incoming value, and the incoming block as well when matching the created phi nodes.
Reviewers: paquette
Differential Revision: https://reviews.llvm.org/D121310
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions