mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
Implement checking for new instructions
llvm-svn: 163
This commit is contained in:
parent
2433cbac88
commit
3b66715c67
@ -25,7 +25,7 @@
|
||||
#include "llvm/iOther.h"
|
||||
#include "llvm/iTerminators.h"
|
||||
#include "llvm/Tools/STLExtras.h"
|
||||
//#include "llvm/Assembly/Writer.h"
|
||||
#include "llvm/Assembly/Writer.h"
|
||||
#include <algorithm>
|
||||
#include <map>
|
||||
#include <set>
|
||||
@ -430,7 +430,7 @@ void SCCP::UpdateInstruction(Instruction *I) {
|
||||
//===-------------------------------------------------------------------===//
|
||||
// Handle Unary instructions...
|
||||
//
|
||||
if (I->isUnaryOp()) {
|
||||
if (I->isUnaryOp() || I->getOpcode() == Instruction::Cast) {
|
||||
Value *V = I->getOperand(0);
|
||||
InstVal &VState = getValueState(V);
|
||||
if (VState.isOverdefined()) { // Inherit overdefinedness of operand
|
||||
@ -456,7 +456,8 @@ void SCCP::UpdateInstruction(Instruction *I) {
|
||||
//===-----------------------------------------------------------------===//
|
||||
// Handle Binary instructions...
|
||||
//
|
||||
if (I->isBinaryOp()) {
|
||||
if (I->isBinaryOp() || I->getOpcode() == Instruction::Shl ||
|
||||
I->getOpcode() == Instruction::Shr) {
|
||||
Value *V1 = I->getOperand(0);
|
||||
Value *V2 = I->getOperand(1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user