Skip to content
Snippets Groups Projects
Commit 57de3734 authored by Christoph Müllner's avatar Christoph Müllner
Browse files

forwprop: Eliminate redundant calls to to_constant()


When extracting the amount of vector elements, we currently
first check if the value is a contant with is_constant(),
followed by obtaining the value with to_constant(),
which internally calls is_constant() again.
We can address this by using is_constant (T*), which also
provides the constant value.

gcc/ChangeLog:

	* tree-ssa-forwprop.cc (recognise_vec_perm_simplify_seq):
	Eliminate redundant calls to to_constant().

Signed-off-by: default avatarChristoph Müllner <christoph.muellner@vrull.eu>
parent ea1deefe
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment