]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix recent bug in canonicalize_comparison (PR87026)
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Aug 2018 12:40:14 +0000 (12:40 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Aug 2018 12:40:14 +0000 (12:40 +0000)
commita80c47f0d8ca07531d458563a5b3f43f2728223a
treec8d6615183efd32e4acc71672eb91501df528409
parent4d2d968027a4e0c603482448b0a2fc9e80990026
Fix recent bug in canonicalize_comparison (PR87026)

The new code testing which way a comparison is best expressed creates
a pseudoregister (by hand) and creates some insns with that.  Such
insns will no longer recog() when pseudo-registers are no longer
aloowed (after reload).  But we have an ifcvt pass after reload (ce3).

This patch simply returns if we cannot create pseudos.

PR rtl-optimization/87026
* expmed.c (canonicalize_comparison): If we can no longer create
pseudoregisters, don't.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263810 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/expmed.c