This help fold more branches into selects.
On R600, vectors are cheap and anything that helps
remove branches is very good.
I don't know why this doesn't use the TTI for this cost
calculation or if it should.
Differential D2218
Make bitcast, extractelement, and insertelement considered cheap for speculation in SimplifyCFG.
arsenm on Nov 18 2013, 7:00 PM. Authored by
Details
Diff Detail Event TimelineComment Actions Hi Matt, I don’t know this code very well but your patch looks okay to me. Please benchmark the LLVM test suite and make sure that this change does not introduce new regressions. SimplifyCFG should not use TTI because this pass is executed very early in the optimization pipe. TTI should only be used by “lowering” transformations in the late stages of the optimization pipe. Thanks, |