[all-commits] [llvm/llvm-project] 10451d: [InstCombine] Remove code after non-terminator unr...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Thu Jun 22 07:00:31 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 10451ded6d7ef799569652dfce81653d37f167b5
https://github.com/llvm/llvm-project/commit/10451ded6d7ef799569652dfce81653d37f167b5
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-06-22 (Thu, 22 Jun 2023)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineInternal.h
M llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
M llvm/test/Transforms/InstCombine/getelementptr.ll
M llvm/test/Transforms/InstCombine/pr44245.ll
M llvm/test/Transforms/InstCombine/unreachable-code.ll
Log Message:
-----------
[InstCombine] Remove code after non-terminator unreachable
Instruction after a non-terminator unreachable are ... unreachable,
so remove them. Reuse the same logic we use for removing
instructions from dead blocks.
More information about the All-commits
mailing list