]> git.ipfire.org Git - thirdparty/gcc.git/commit
dce: Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT in simple_dce_from_wo...
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Fri, 14 Nov 2025 01:27:06 +0000 (17:27 -0800)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Wed, 19 Nov 2025 17:14:04 +0000 (09:14 -0800)
commitc8eb7d8dbb9ff4eb13f476b16f8f58103cace64e
tree35658d9990b8c107dec687bebbaa5a3becc2bd98
parentd56eb2fbcb5a65ca738534fab640e36b9061b0b2
dce: Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT in simple_dce_from_worklist

When I wrote this code I forgot about FOR_EACH_IMM_USE_FAST. Since this code does not change
any of the uses inside of the loop using FOR_EACH_IMM_USE_FAST will be slightly faster.

Bootstrapped and tested on x86_64-linux-gnu.

gcc/ChangeLog:

* tree-ssa-dce.cc (simple_dce_from_worklist): Use FOR_EACH_IMM_USE_FAST instead of
FOR_EACH_IMM_USE_STMT.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/tree-ssa-dce.cc