mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 01:11:44 +00:00
Print select instructions correctly
llvm-svn: 12320
This commit is contained in:
parent
76457c9c13
commit
aa815619b4
@ -915,8 +915,9 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
|
||||
bool PrintAllTypes = false;
|
||||
const Type *TheType = Operand->getType();
|
||||
|
||||
// Shift Left & Right print both types even for Ubyte LHS
|
||||
if (isa<ShiftInst>(I)) {
|
||||
// Shift Left & Right print both types even for Ubyte LHS, and select prints
|
||||
// types even if all operands are bools.
|
||||
if (isa<ShiftInst>(I) || isa<SelectInst>(I)) {
|
||||
PrintAllTypes = true;
|
||||
} else {
|
||||
for (unsigned i = 1, E = I.getNumOperands(); i != E; ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user