diff options
| author | Craig Topper <craig.topper@intel.com> | 2018-08-16 21:54:02 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2018-08-16 21:54:02 +0000 |
| commit | bde2b43cb3386534dc2f66d6de29567cf1347b9d (patch) | |
| tree | 7bbf30342d07c0e0ddb8b12b35d6744ab3a8a7e6 /clang-tools-extra/clang-tidy/cppcoreguidelines/ProBoundsPointerArithmeticCheck.h | |
| parent | a6c34887f70d43d733157650d4c16a426574e868 (diff) | |
| download | bcm5719-llvm-bde2b43cb3386534dc2f66d6de29567cf1347b9d.tar.gz bcm5719-llvm-bde2b43cb3386534dc2f66d6de29567cf1347b9d.zip | |
[X86] In EFLAGS copy pass, don't emit EXTRACT_SUBREG instructions since we're after peephole
Normally the peephole pass converts EXTRACT_SUBREG to COPY instructions. But we're after peephole so we can't rely on it to clean these up.
To fix this, the eflags pass now emits a COPY with a subreg input.
I also noticed that in 32-bit mode we need to constrain the input to the copy to ensure the subreg is valid. Otherwise we'll fail verify-machineinstrs
Differential Revision: https://reviews.llvm.org/D50656
llvm-svn: 339945
Diffstat (limited to 'clang-tools-extra/clang-tidy/cppcoreguidelines/ProBoundsPointerArithmeticCheck.h')
0 files changed, 0 insertions, 0 deletions

