This fixes an issue where the RHS and LHS the comparison operation
creating the predicate were swapped back and forth forever.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM
A test case would be nice of course, but with this kind of worklist order issue (select folded before icmp) it's always tricky.
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp | ||
---|---|---|
1129 | llvm patternmatch has m_ImmConstant :) check it |
Comment Actions
I apologize, but I was not having any luck at creating a test case that wasn't constant folded away.
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp | ||
---|---|---|
1129 | Thank you for the pointer. |
llvm patternmatch has m_ImmConstant :) check it