This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] PR22506 (ICE durin peeling in vectorizer)





slpeel_update_phi_nodes_for_guard2 creates phis for variables that are used
out of the peeled loop (and therefore have loop-closed exit phis). In this
case, there's a loop-closed-phi that looks like this: 'i_13=phi(0)'. Since
loop-closed-phis represent uses out of the loop, we didn't expect to see a
non-ssa argument. This patch handles this case - we can simply skip such
phis, cause no updates for this variable are required. Bootstrapped on
powerpc-darwin, tested on the vectorizer testcases. Attached also a
testcase.

ok to install?

:ADDPATCH SSA:

thanks,
dorit

PR tree-optimization/22506
* tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
phis whose argument is constant.

(See attached file: july28)

Attachment: july28
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]