OSDN Git Service

BranchFolder: Fix invalid undef flags after merge.
authorMatthias Braun <matze@braunis.de>
Tue, 20 Sep 2016 01:14:42 +0000 (01:14 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 20 Sep 2016 01:14:42 +0000 (01:14 +0000)
commitb72235f318ab2e5d85a5d051a2d9d09fcb29dd10
treed238a0b64aabbd9eb079214d994ba48364585559
parent34c557c6901bed37c8e714aaeab9b0a5e9f4753e
BranchFolder: Fix invalid undef flags after merge.

It is legal to merge instructions with different undef flags; However we
must drop the undef flag from the merged instruction if it isn't present
everywhere.

This fixes http://llvm.org/PR30199

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281957 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BranchFolding.cpp
test/CodeGen/X86/branchfolding-undef.mir [new file with mode: 0644]