https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116267
Bug ID: 116267 Summary: Sanitizer extremely slow Product: gcc Version: 11.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: wsnyder at wsnyder dot org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Target Milestone: --- The attached exposes some O(n^2) or other performance issue with -fsanitize. $ g++ -ftime-report -O0 -Wall -Wextra -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-shadow -Wno-sign-compare -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -c -o Vt_case_unique_many__ALL.o Vt_case_unique_many__ALL.ii TOTAL : 0.81 0.92 1.73 159M time g++ -ftime-report -fsanitize=address,undefined -O0 -Wall -Wextra -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-shadow -Wno-sign-compare -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -c -o Vt_case_unique_many__ALL.o Vt_case_unique_many__ALL.ii <Finishes in approx 2 hours>