Refactor gimple_fold_builtin_memory_op function.
authorMartin Liska <mliska@suse.cz>
Tue, 30 Apr 2019 09:19:41 +0000 (11:19 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 30 Apr 2019 09:19:41 +0000 (09:19 +0000)
commit0d67a51060e7d67b685ace6ba5395d9a98e2f5be
tree0758a0dc6eae8aa23b68cc00717958f8f7388f5c
parent791536baadc9f469ec8eef2d7213c6f6091c5fa9
Refactor gimple_fold_builtin_memory_op function.

2019-04-30  Martin Liska  <mliska@suse.cz>

* gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
into built_in_function enum. Remove code for endp == 2 and
use BUILT_IN_* constants.
(gimple_fold_builtin): Call the function with fcode.

From-SVN: r270682
gcc/ChangeLog
gcc/gimple-fold.c