[all-commits] [llvm/llvm-project] 8bfef7: [ConstantHoisting] Fix bug where constant material...
Michael Holman via All-commits
all-commits at lists.llvm.org
Mon Feb 1 11:24:25 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8bfef787225c14a67db23254b82b330e85d1c35c
https://github.com/llvm/llvm-project/commit/8bfef787225c14a67db23254b82b330e85d1c35c
Author: Michael Holman <michael.holman at microsoft.com>
Date: 2021-02-01 (Mon, 01 Feb 2021)
Changed paths:
M llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
A llvm/test/Transforms/ConstantHoisting/X86/ehphi.ll
Log Message:
-----------
[ConstantHoisting] Fix bug where constant materialization could insert into EH pad
If the incoming block to a phi node is an EH pad, then we will
materialize into an EH pad, which is not supposed to happen. To fix
this, I added a check to see if incoming block of a phi node is an EH
pad before using it as the insertion point.
Differential Revision: https://reviews.llvm.org/D95019
More information about the All-commits
mailing list