diff options
author | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2017-12-15 11:47:48 +0000 |
---|---|---|
committer | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2017-12-15 11:47:48 +0000 |
commit | 1794cdc4813e2ef6843c2e9e37c2888bca14d33f (patch) | |
tree | 07c9d07e2c636189e3d279ec044d7b7bbed9c89b /llvm/lib/Target/PowerPC/PPCMIPeephole.cpp | |
parent | 0c1e0dbb96d5fe93909c175dfd2da939ccf1e173 (diff) | |
download | bcm5719-llvm-1794cdc4813e2ef6843c2e9e37c2888bca14d33f.tar.gz bcm5719-llvm-1794cdc4813e2ef6843c2e9e37c2888bca14d33f.zip |
Fix code causing fallthrough warnings in the PPC back end.
llvm-svn: 320806
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCMIPeephole.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCMIPeephole.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp b/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp index 45647a2c36b..64c5e4ebb87 100644 --- a/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp +++ b/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp @@ -774,7 +774,7 @@ bool PPCMIPeephole::simplifyCode(void) { // Eliminate all the TOC save instructions which are redundant. Simplified |= eliminateRedundantTOCSaves(TOCSaves); // We try to eliminate redundant compare instruction. - //Simplified |= eliminateRedundantCompare(); + Simplified |= eliminateRedundantCompare(); return Simplified; } @@ -1025,6 +1025,9 @@ bool PPCMIPeephole::eliminateRedundantTOCSaves( // bge 0, .LBB0_4 bool PPCMIPeephole::eliminateRedundantCompare(void) { + // FIXME: this transformation is causing miscompiles. Disabling it for now + // until we can resolve the issue. + return false; bool Simplified = false; for (MachineBasicBlock &MBB2 : *MF) { |