Phi nodes in non-header blocks are converted to select instructions after if-conversion. This patch updates the cost model to account for the selects.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 5443 Build 5443: arc lint + arc unit
Event Timeline
Comment Actions
LGTM
| lib/Transforms/Vectorize/LoopVectorize.cpp | ||
|---|---|---|
| 7280 | We don't need to handle Phi->getNumIncomingValues() == 0 - it doesn't pass the verifier, right? | |
| 7285 | This returns 1 by default, right? I'm not entirely sure that's the right thing to do here, but it's probably no worse than the current state. | |
| test/Transforms/LoopVectorize/phi-cost.ll | ||
| 7 | Please also add a CHECK for the induction phi. | |
We don't need to handle Phi->getNumIncomingValues() == 0 - it doesn't pass the verifier, right?