diff options
author | Quentin Colombet <qcolombet@apple.com> | 2016-04-22 20:09:58 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2016-04-22 20:09:58 +0000 |
commit | 10768ab09e5901d1fb010a9471913d5d29246531 (patch) | |
tree | d90390ffdae3a3879feda6e48dd5594fcbc5d3bd /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 55a1d50b3ac3a3e6f6ae9c72b12b4adcde33da31 (diff) | |
download | llvm-10768ab09e5901d1fb010a9471913d5d29246531.zip llvm-10768ab09e5901d1fb010a9471913d5d29246531.tar.gz llvm-10768ab09e5901d1fb010a9471913d5d29246531.tar.bz2 |
[AArch64] Fix optimizeCondBranch logic.
The opcode for the optimized branch does not depend on the size
of the activate bits in the AND masks, but the AND opcode itself.
Indeed, we need to use a X or W variant based on the AND variant
not based on whether the mask fits into the related variant.
Otherwise, we may end up using the W variant of the optimized branch
for 64-bit register inputs!
This fixes the last make check verifier issues for AArch64: PR27479.
llvm-svn: 267206
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions