aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC/PPCMachineScheduler.cpp
diff options
context:
space:
mode:
authorYevgeny Rouban <yevgeny.rouban@azul.com>2019-06-04 09:03:39 +0000
committerYevgeny Rouban <yevgeny.rouban@azul.com>2019-06-04 09:03:39 +0000
commit4f9e68148bd0dada2d6997625432385918ac2e2c (patch)
tree1de18cf8d471404a72642b5c49e02cfb799d3e03 /llvm/lib/Target/PowerPC/PPCMachineScheduler.cpp
parent11de0e71b0da7c822f7e7636ebe46f54ebc856db (diff)
downloadllvm-4f9e68148bd0dada2d6997625432385918ac2e2c.zip
llvm-4f9e68148bd0dada2d6997625432385918ac2e2c.tar.gz
llvm-4f9e68148bd0dada2d6997625432385918ac2e2c.tar.bz2
Make SwitchInstProfUpdateWrapper safer
While prof branch_weights inconsistencies are being fixed patch by patch (pass by pass) we need SwitchInstProfUpdateWrapper to be safe with respect to inconsistent metadata that can come from passes that have not been fixed yet. See the bug found by @nikic in https://reviews.llvm.org/D62126. This patch introduces one more state (called Invalid) to the wrapper class that allows users to work with the underlying SwitchInst ignoring the prof metadata changes. Created a unit test for the SwitchInstProfUpdateWrapper class. Reviewers: davidx, nikic, eraman, reames, chandlerc Reviewed By: davidx Differential Revision: https://reviews.llvm.org/D62656 llvm-svn: 362473
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCMachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions