summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-02-09 21:58:24 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-02-09 21:58:24 +0000
commitd7dd65ad7c0eb8ba0345154af23b10f2c4be4e8e (patch)
treef0aa6d3722248216e996da6837056750afa27371 /clang/lib/Frontend/CompilerInvocation.cpp
parent0beb3323c5f18b9ed867ebd4eeb207dcd8f95e77 (diff)
downloadbcm5719-llvm-d7dd65ad7c0eb8ba0345154af23b10f2c4be4e8e.tar.gz
bcm5719-llvm-d7dd65ad7c0eb8ba0345154af23b10f2c4be4e8e.zip
X86: Teach X86InstrInfo::analyzeCompare to recognize compares of symbols.
This requires that we communicate to X86InstrInfo::optimizeCompareInstr that the second operand is neither a register nor an immediate. The way we do that is by setting CmpMask to zero. Note that there were already instructions where the second operand was not a register nor an immediate, namely X86::SUB*rm, so also set CmpMask to zero for those instructions. This seems like a latent bug, but I was unable to trigger it. Differential Revision: https://reviews.llvm.org/D28621 llvm-svn: 294634
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud