mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-12 07:21:56 +00:00
A use by operand 1 or 2 of a SELECT is not a FLAGS use. This
lets the test-elimination work in more conditional-move cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92508 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9ef51c8011
commit
3cc4a307a8
@ -5612,7 +5612,7 @@ SDValue X86TargetLowering::EmitTest(SDValue Op, unsigned X86CC,
|
||||
for (SDNode::use_iterator UI = Op.getNode()->use_begin(),
|
||||
UE = Op.getNode()->use_end(); UI != UE; ++UI)
|
||||
if (UI->getOpcode() != ISD::BRCOND &&
|
||||
UI->getOpcode() != ISD::SELECT &&
|
||||
(UI->getOpcode() != ISD::SELECT || UI.getOperandNo() != 0) &&
|
||||
UI->getOpcode() != ISD::SETCC) {
|
||||
NonFlagUse = true;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user