OSDN Git Service

[x86] Fix PR34377 by disabling cmov conversion when we relied on it
authorChandler Carruth <chandlerc@gmail.com>
Wed, 6 Sep 2017 06:28:08 +0000 (06:28 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 6 Sep 2017 06:28:08 +0000 (06:28 +0000)
commit1467a089bcd73f11c51da5545eb947ac6bad4618
tree9f95993077bf875cfdae2eb484c5d8bb7af3d6a5
parent922eae4d2ea3b134a636f2be9fd0d42daa731e1c
[x86] Fix PR34377 by disabling cmov conversion when we relied on it
performing a zext of a register.

On the PR there is discussion of how to more effectively handle this,
but this patch prevents us from miscompiling code.

Differential Revision: https://reviews.llvm.org/D37504

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312620 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86CmovConversion.cpp
test/CodeGen/X86/cmov-into-branch.ll