Instead of passing an InstCmpInt * and a bool just pass the predicate
from the caller.
I'm considering moving the similar FCmp functions from InstCombine
over here and this makes the interface consistent with what is used
for FCmp.
Paths
| Differential D120609
[Analysis] Simplify the interface to llvm::getICmpCode. NFC ClosedPublic Authored by craig.topper on Feb 25 2022, 9:52 PM.
Details Summary Instead of passing an InstCmpInt * and a bool just pass the predicate I'm considering moving the similar FCmp functions from InstCombine
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 1 2022, 4:00 AM This revision was landed with ongoing or failed builds.Mar 1 2022, 10:09 AM Closed by commit rG7bc666784566: [Analysis] Simplify the interface to llvm::getICmpCode. NFC (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 412152 llvm/include/llvm/Analysis/CmpInstAnalysis.h
llvm/lib/Analysis/CmpInstAnalysis.cpp
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
|