[all-commits] [llvm/llvm-project] 3a223f: [InstCombine] Fix crash due to early extractvalue ...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Wed May 24 00:56:09 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3a223f1eafe331508d171b519df8a4984791ab48
https://github.com/llvm/llvm-project/commit/3a223f1eafe331508d171b519df8a4984791ab48
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-05-24 (Wed, 24 May 2023)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
M llvm/test/Transforms/InstCombine/extractelement.ll
Log Message:
-----------
[InstCombine] Fix crash due to early extractvalue removal
Fixes the issue reported at https://github.com/llvm/llvm-project/commit/4b8320868c9e32d1448c81ca76dba2a6b9f374cd#commitcomment-114671248.
The extractvalue instructions may still be used by the calling code
in some cases. Rather than trying to figure out which extracts are
safe to remove and which aren't, add them to the worklist so they
will get DCEd by the main loop.
More information about the All-commits
mailing list