[PATCH] D53356: [InstCombine] Teach the move free before null test opti how to deal with noop casts
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 23 13:46:44 PDT 2018
lebedev.ri added inline comments.
================
Comment at: lib/Transforms/InstCombine/InstructionCombining.cpp:2363-2367
+ if (!match(TI,
+ m_Br(m_ICmp(Pred, m_Specific(Op), m_Zero()), TrueBB, FalseBB)) &&
+ !match(TI,
+ m_Br(m_ICmp(Pred, m_Specific(Op->stripPointerCasts()), m_Zero()),
+ TrueBB, FalseBB)))
----------------
```
if (!match(TI, m_Br(m_ICmp(Pred,
m_CombineOr(m_Specific(Op),
m_Specific(Op->stripPointerCasts())),
m_Zero()), TrueBB, FalseBB)))
```
Repository:
rL LLVM
https://reviews.llvm.org/D53356
More information about the llvm-commits
mailing list